[scilab-Users] Plotting vector field of differential equations
xavier roguiez
xr at geo.hmg.inpg.fr
Sun Nov 2 18:56:32 CET 2008
Christoph Korn a écrit :
> Hello,
> how can I plot a vector field of a differential equation like:
> y'(x) = y(x)
> or
> y'(x)=y(x)+sin(x)
>
>
Hello
-> help ode should be a good starting point, you will find such samples :
function ydot=f(t,y),ydot=y^2-y*sin(t)+cos(t),endfunction
y0=0;t0=0;t=0:0.1:%pi;
y=ode(y0,t0,t,f)
plot(t,y)
xavier
More information about the users
mailing list