Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-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
Joined
Dec 27, 2012
Messages
1
Location
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.

Part and Inventory Search

Sponsor

Back
Top