Answered
How to initialize static variable in C caller blocks during simulation
The "C Caller" block creates temporal C and header files, compiles these and creates .dll files under the slprj folder. These .d...

3 years ago | 1

| accepted

Answered
Accessing data inside a cell array using a loop
Woud this be working for you? % Z = input('input the test number\n '); Z=[1,2,5]; N = 10; data = cell(48,1); for i = 1:48 ...

4 years ago | 0

Answered
Apply condition to specific column and extract data from that row
A = [1 2 3 2 6 6 1 8 5 3 2 7 8 4 3 6 8 1]; idx_row = (A(:,1) < 5) ...

4 years ago | 0

Answered
How to make variable names using for loop
for k=1:50 v(k)=0; end

4 years ago | 0

Answered
what is the mistake in this code because the output results doesn't appear?
In line 180, you are not supposed to use function "zeros" like below. zeros(j, 1:n) According to the error message, the second...

4 years ago | 0

Answered
Why does the same function generate different results when coder.extrinsic is ON or OFF?
This is because math kernel libraries for code-gen fmincon and MATLAB engine's are different. This is explained in the doc "fmin...

4 years ago | 0