Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function [ dxdt ] = kolZad1(t,x )
  2.  
  3. u = pobuda(t);
  4. k = 0.5;
  5. e = u-k;
  6.  
  7.  
  8. dxdt = [x(2)
  9. 4*e-x(1)-x(2)
  10. x(4)
  11. x(1).^2-x(3)];
  12. end
  13.  
  14. /////////////////////////////////
  15. -- pobuda(t)
  16.  
  17. function out = pobuda(t)
  18.  
  19. out = ((-1/3)*t + 3).*((t>=1 & t<=3) | (t>=4 & t<=6) | (t>=7 & t<9));
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement