To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I need to implement the following behavior :
The Integrator and my_Integrator blocks have to be equivalent I/O.
How should I write the Matlab Function ?
Thanks for any reply.
As this looks like a homework problem, I can't answer directly. However I will point you in the direction of persistent variables.
I don't know why do you need this, maybe if you explain exactly what you need, there is better way
This is not a good idea. The MATLAB function is not designed for this purpose.
My main goal is to implement the differential equations of a physical system using a single Matlab Function. As the sums and gains were easy to represent, I couldn't find any alternative for the integration.