Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with simulink

Status
Not open for further replies.

marcobianchini

Industrial
Dec 27, 2012
1
0
0
IT
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?

 
Status
Not open for further replies.
Back
Top