Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Force = [13 469.11 406.6 239.91 104.5 73.24 62.83 38.09 31.58 10.74 0.33 -124.69 -291.37 -364.27];
  2. Velocity = [13 -263.46 -157.61 -79.39 -40.52 -21.78 -11.48 0 10.08 19.92 39.13 78.96 156.28 262.66]/1000;
  3.  
  4. p = polyfit(Velocity,Force,1)
  5. figure (1)
  6. hold on
  7. box on
  8. plot(Velocity, Force, 'or')
  9. xlabel('Velocity mm/sec')
  10. ylabel('Force N')
  11.  
  12.  
  13.  
  14. Part 2
  15.  
  16. m=
  17. a=
  18. b=
  19. alpha=
  20.  
  21. p = polyfit(Velocity,Force,1)
  22. c=-p(1)
  23. ce=c*((a/b)*cos(alpha))^2
  24. omega_n=ce/(2*1*m)
  25. ke=(omega_n)^2*m
  26. k=ke/((a/b)*cos(alpha))^2
  27.  
  28.  
  29. Part 3
  30.  
  31.  
  32. t = 0:0.01:T;
  33. T=30
  34.  
  35. H=0.5;
  36. y = H.*(1-(1+(omega_n.*t)).*exp(-omega_n.*t));
  37.  
  38. figure(1)
  39. hold on
  40. box on
  41. plot(t,y,'y')
  42. xlabel('t, [sec]')
  43. ylabel('Step Input, H, [m^2/s^2]')
  44. title('Response of the Second order System')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement