I wrote a simple program.
function y = test(x)
y = x+2;
Now I want to create c code and I need to define the type and the length of x. I define x as type double and length of 10;
void test(const real_T x, real_T y)
for (i0 = 0; i0 < 10; i0++)
y[i0] = x[i0] + 2.0;
The C code is OK!
How can it work in a case that the length of x is changing ?