marcobianchini
Industrial
- Dec 27, 2012
- 1
Hi,
I have to get work this fcn in simulink
function V1 = fcn(Voc2)
V1 =[0:Voc2/100:Voc2];
But i get this error(fcn is correct,in matlab works):
Data 'V1' (#92) is inferred as a variable size matrix, while its specified
type is something else.
Someone suggest me to change the size output (from tools/edit data-ports),
but after I get this error:
Computed maximum size of the output of function 'colon' is not bounded.
Static memory allocation requires all sizes to be bounded.
The computed size is [1 x :?].
Function 'MATLAB Function' (#87.65.82), line 5, column 8:
"[0:Voc2/100:Voc2]"
What can I do?
I have to get work this fcn in simulink
function V1 = fcn(Voc2)
V1 =[0:Voc2/100:Voc2];
But i get this error(fcn is correct,in matlab works):
Data 'V1' (#92) is inferred as a variable size matrix, while its specified
type is something else.
Someone suggest me to change the size output (from tools/edit data-ports),
but after I get this error:
Computed maximum size of the output of function 'colon' is not bounded.
Static memory allocation requires all sizes to be bounded.
The computed size is [1 x :?].
Function 'MATLAB Function' (#87.65.82), line 5, column 8:
"[0:Voc2/100:Voc2]"
What can I do?