Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function [dpdt] = test8(t, p)
  2.  
  3. M1 = 30;
  4. M2 = 10;
  5. k1 = 200;
  6. k2 = 300;
  7. B1 = 30;
  8. B2 = 10;
  9.  
  10. dpdt = [
  11. p(2)
  12. (1/M1)*(-k1*p(1)-B1*(p(4)-p(2)))
  13. p(4)
  14. (1/M2)*(B1*(p(4)-p(2))+k2*p(3)+B2*p(4))
  15. ];
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement