%x(1),x(2),x(3)=f,g,h
fun = @(t,x) [0.25*x(2)*x(3); -2/3*x(1)*x(3);
-0.5*x(1)*x(2)];
[t,x] = ode45(fun,[0 100],[1 2 3]);
plot3(x(:,1),x(:,2),x(:,3))
%x has three columns which contains values of f,g,h as a function of time from %time t=0 to t=100
%please check ode45 in matlab to see what these arguments mean
1 回答