Advertisement
makispaiktis

PROS_Exercises1_msd

Mar 2nd, 2021 (edited)
1,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.23 KB | None | 0 0
  1. function dx = msd(t, x, m, b, k, u)
  2.  
  3. % Παραγωγος θεσης
  4. dx(1) = x(2);
  5. % Παραγωγος ταχυτητας
  6. dx(2) = 1/m * (-k*x(1) - b * (x(2))^2 + u(t));
  7. % Για να επιστρεφει στηλη
  8. dx = dx';
  9.  
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement