Matlab inline function from symbolic solution

posted Oct 20, 2008, 1:54 PM by Ofer Fridman
Small tip (it is not working any time).
when you  have a differential equation you want to plot (or test with values) you can use the following code.


%The result of the differential equation will be defined as function F
F=inline(char( dsolve('DN=N*(1-N/M)')));
%now we can use F as in-line function