i have meet a problem when using coder to generate C coder. matlab function contains a sentences like
function [ B ] = fn1( A )
a = A(:,2);
B = a+1;
end
A is input parameter, 4x2 matrix.
i got c code:
void fn1(const float A[8], float B[4])
{
int i0;
for (i0 = 0; i0 < 4; i0++) {
B[i0] = A[4 + i0] + 1.0F;
}
}
B is not then 2nd column of A.
in matab "define input types", i changed row/column ,it still not working.
i'm using matlab 2016b. is there additional setting or advice to solve this problem?
thanks.