Risposto
Using intlinprog in Simulink
Hi Dan, the problem is that intlinprog is not supported for code generation and Simulink generates C code from the code contain...

oltre 2 anni fa | 0

| accettato

Risposto
Query Instrument - non-numeric value
Hi Tobias, to answer the final part: you can use the MATLAB Function block to incorporate MATLAB code into Simulink models. Be...

oltre 2 anni fa | 0

| accettato

Risposto
How to use parallel computing for a BytesAvailableFnc of a serial object?
Hi Oliver, you could use the backgroundPool function. This even works without Parallel Computing Toolbox. As soon as you run th...

oltre 2 anni fa | 0

| accettato

Risposto
Generating C Code from Matlab Code containing ODE15s Solver
Hi Hossein, it could be that you have not properly defined the input arguments of the function. My recommendation is to use the...

oltre 2 anni fa | 0

Risposto
Create a logarithmic Latin Hypercube Sampling distribution (with lhsdesign).
Hi Lorenz, I am not sure whether this is legitimate from the statistics point of view, but you could get a nice distribution by...

oltre 2 anni fa | 1

| accettato

Risposto
Wie klappt die normale und inverse Fouriertransformation?
Hallo, abgesehen von den Verschiebungen durch fftshift sind die Unterschiede zwischen Cor und FTFT_S_Cor in der Größenordnung v...

oltre 2 anni fa | 0

| accettato

Risposto
How to use set_param(BlockX, 'SampleTime') during runtime of Simulink?
Hi FJ, as the error message indicates, I don't think this can be done directly. My recommendation would be to choose the sampl...

oltre 2 anni fa | 0

| accettato

Risposto
Running external program as batch file with delayed inputs
Hi Jan, I would primarily consider that an issue of the .bat-file: if it is designed to accept multiple commands via a text fil...

oltre 2 anni fa | 1

| accettato

Risposto
On shifting spectra pixelwise towards lower/higher x-axis values by lsqcurvefit or such - constrain boundaries to integer values
Hi Michael, least squares solvers are based on gradients and I would therefore not use them for integer problems unless you can...

oltre 2 anni fa | 1

| accettato

Risposto
Nach Dateiauswahlen Pfade und Namen in Vector speichern
Hallo Maverick, zum Vorbelegen von Text würde ich strings verwenden. Beim Aufruf von uigetfile würde ich mir immer zwei Argum...

oltre 2 anni fa | 0

| accettato

Risposto
Füllen der Fläche zwischen zwei Vektoren mit NaN-Werten am Ende mit fill oder area ?
Hallo Niklas, mein Vorschlag wäre, eine Matrix aus lower und upper zu bilden und diese an area zu übergeben, und die Fläche zwi...

quasi 3 anni fa | 1

| accettato

Risolto


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

oltre 4 anni fa

Risolto


Repeat string n times
* You will be provided a string (s = 'string1_') * a starting point (num1 = 6) (always bigger than or equal to zero) * and n (...

oltre 5 anni fa

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

oltre 5 anni fa

Risolto


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

oltre 8 anni fa

Risolto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

oltre 13 anni fa

Risolto


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

oltre 13 anni fa

Risolto


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

oltre 13 anni fa

Risolto


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

oltre 13 anni fa

Risolto


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

oltre 13 anni fa

Risolto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

oltre 13 anni fa

Risolto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

oltre 13 anni fa

Risolto


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

oltre 13 anni fa

Risolto


Renaming a field in a structure array
MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

oltre 13 anni fa

Risolto


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

oltre 13 anni fa

Risolto


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

oltre 13 anni fa

Risolto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

oltre 13 anni fa

Risolto


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

circa 14 anni fa

Risolto


Is my wife right?
Regardless of input, output the string 'yes'.

circa 14 anni fa

Risolto


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

circa 14 anni fa

Carica altro