Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: imulink - Embedded Matlab Function - Size of function not bounded error
Replies: 1   Last Post: Jul 28, 2013 12:33 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Phil Goddard

Posts: 124
Registered: 6/8/11
imulink - Embedded Matlab Function - Size of function not bounded error
Posted: Jul 24, 2013 5:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear Phil Goddard,
I hope I?m not disturbing you. From what you have written in different forums, I can imagine that you might have an idea of how to solve the problem that I?m getting in a MATLAB Function block.
This is the part of the text where I?m having troubles
Ptotal = fcn(SOC_S1_100,S1_AGENTS_100,time_CAP_100)

assert(time_CAP_100 (1) <100);
tcharging_a1_1=[0:0.05:time_CAP_100(1)];
tcharging_a1=[0:0.05:time_CAP_100(1)*2];
tcharging_a1_2=[time_CAP_100(1):0.05:time_CAP_100(1)*2];
??..
And this is the error that I?m getting
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 'Subsystem1/Slow Charge/S1/MATLAB Function' (#31.261.301), line 10, column 16: "[time_CAP_100(1):0.05:time_CAP_100(1)*2]"

What really disconcerts me is, Why is it working for the other two variables tcharging_a1_1 and tcharging_a1? I?ve trying to solve it but everything nothing worked.

I hope you can give me a clue of how to solve it.

Thank you very much for your attention.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.