Hi,
I am reading on the Matlab help about coder.varsize. In particular, I read that
Declare Variable-Size Array with a Mix of Fixed and Variable DimensionsSpecify that A is an array whose first dimension has a fixed size of three and whose second dimension has a variable size with an upper bound of 20.function fcn()...coder.varsize('A',[3 20], [0 1] );...end
I am not sure I understand how to fix the first dimension, but declaring the second dimension as "Inf", so no upperbound at all.
From what I understand here, I always need to give an upperbound, when I have a mix of fixed and variable dimensions. Is that correct, or there is a way to fix one dimension, and specify the second dimension as unbounded?
Best Answer