Advertisement
ulises114

Untitled

May 1st, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.17 KB | None | 0 0
  1. %Datos acontrol=35
  2. datos=load('datosvel35.txt');
  3. figure
  4. tiempo=0:0.05:4.95;
  5. plot(tiempo,datos(:,1))
  6. hold
  7. stairs(tiempo,datos(:,2))
  8. title('Datos velocidad con acción de control 35')
  9. xlabel('Tiempo(s)')
  10. ylabel('Velocidad angular(rad/s)')
  11. legend('Velocidad angular','Acción de control')
  12.  
  13. %Datos acontrol=50
  14. datos=load('datosvel50.txt');
  15. figure
  16. tiempo=0:0.05:4.95;
  17. plot(tiempo,datos(:,1))
  18. hold
  19. stairs(tiempo,datos(:,2))
  20. title('Datos velocidad con acción de control 50')
  21. xlabel('Tiempo(s)')
  22. ylabel('Velocidad angular(rad/s)')
  23. legend('Velocidad angular','Acción de control')
  24.  
  25. %Datos acontrol=80
  26. datos=load('datosvel80.txt');
  27. figure
  28. tiempo=0:0.05:4.95;
  29. plot(tiempo,datos(:,1))
  30. hold
  31. stairs(tiempo,datos(:,2))
  32. title('Datos velocidad con acción de control 80')
  33. xlabel('Tiempo(s)')
  34. ylabel('Velocidad angular(rad/s)')
  35. legend('Velocidad angular','Acción de control')
  36.  
  37. %Datos acontrol=-40
  38. datos=load('datosvel-40.txt');
  39. figure
  40. tiempo=0:0.05:4.95;
  41. plot(tiempo,datos(:,1))
  42. hold
  43. stairs(tiempo,datos(:,2))
  44. title('Datos velocidad con acción de control -40')
  45. xlabel('Tiempo(s)')
  46. ylabel('Velocidad angular(rad/s)')
  47. legend('Velocidad angular','Acción de control')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement