Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



imulink  Embedded Matlab Function  Size of function not bounded error
Posted:
Jul 24, 2013 5:57 AM


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.



