[Scilab-users] How to use champ
shahriqeen
shahrizan.mazlan at yes.my
Mon Dec 14 08:47:40 CET 2015
I am a new user to this scilab. How to plot the champ of this system
function f=System1(t, y);
f = zeros (2,1);
f(1) = A*y(1)-(B*y(1)*y(2));
f(2) = (-C*y(2))+(D*y(1)*y(2))
endfunction
A=0.4;
B=0.06;
C=0.12;
D=0.0006;
t0=0;
y0=[140;6];
t=0:0.001:150;
y=ode (y0,t0,t,System1);
plot2d(y(1,:),y(2,:),1);
xtitle ('System1');
xlabel('x');
ylabel ('y');
--
View this message in context: http://mailinglists.scilab.org/How-to-use-champ-tp4033219.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list