Advertisement
Guest User

LK

a guest
Oct 27th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.26 KB | None | 0 0
  1. fun3 = @(t,x) [-5*x(1)+4*abs(x(2)); -3*x(1)*x(2)+2*sin(x(1))-x(2)+x(3); -x(1)*x(2) + 10*x(2)*cos(x(1))-5*x(3)];
  2. options3 = odeset('Mass',[1 0 0 ; 0 1 0; 0 0 1]);
  3. czas = [0 2];
  4. x0 = [ 10 -10 5];
  5. figure
  6. [t,xa]=ode45(fun3,czas,x0,options3)
  7. plot(t,xa)
  8. hold on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement