No BSD License  

Highlights from
Examples of incorporating m-code into Simulink models

from Examples of incorporating m-code into Simulink models by Jason Ghidella
Example Simulink models to support a MATLAB Digest article from September 2004.

mdot=eqn_mlfcn(x)
function mdot=eqn_mlfcn(x)

Pm=x(1);
N=x(2);

mdot=-0.366 + 0.08979*Pm*N - 0.0337*N* Pm.^2 + 0.0001*Pm*N.^2;

Contact us at files@mathworks.com