Advertisement
SilLAwNeD

Scilab, tracevdp function

Nov 28th, 2018
2,770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.30 KB | None | 0 0
  1. function tracevdp(a, t0, T, Nptmil, Node)
  2.     // Approximation VDP
  3.     u = pointmilieu(a, t0, T, Nptmil, vdp);
  4.    
  5.     // Approximation ODE
  6.     t = linspace(t0, T, Node+1);
  7.     x = ode(a, t0, t, vdp)
  8.    
  9.     plot(u(1,:), u(2,:));
  10.     plot(x(1,:), x(2,:), 'r');
  11.    
  12.     title('VDP');
  13. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement