gringotopies

lab3dynamiczne

Dec 21st, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.22 KB | None | 0 0
  1. A=[0,1;-3,-7];
  2. B=[0;1];
  3. C=[1,0;0,1];
  4. D=[0;0];
  5. h=0.1;
  6. WPC=0;
  7. syms s;
  8.  
  9. Ad=expm(h*A);
  10. Bd=double(int(expm(s*A)*B,s,0,h));
  11. Cd=C;
  12.  
  13. open('modellab3');
  14. sim('modellab3');
  15. figure;
  16. plot(tout,x);
  17.    
  18.  
  19.  
  20.  
  21.  
  22.  
  23. %Jan Zasadny
Add Comment
Please, Sign In to add comment