J = zeros(0,1);coder.varsize(J);coder.extrinsic('fast_union_sorted'); temp = fast_union_sorted(activeSet, I);J = temp;
the size of the array temp is not fixed size;
Matlab will report error when executing " J = temp", such as
expression 'temp' is not of the correct size: expected [0x1] found [5×1].
How can I solve it?
Thanks!
Best Answer