[scilab-Users] Plotting vector field of differential equations

Christoph Korn c_korn at gmx.de
Sun Nov 2 23:56:09 CET 2008


Ok. Thank you.

But this only outputs one line.

Is there also a function to output a complete field like this one?
http://img508.imageshack.us/img508/4952/unbenanntfz6.png

xavier roguiez schrieb:
> 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