Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 25th, 2013  |  syntax: MatLab  |  size: 0.20 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. clear all
  2. timerange=[0 5]; %seconds
  3. vinitial=[0 0 0 0]; %
  4. [t,v]=ode45(@dof3,timerange,vinitial)
  5. v(:,2)=v(:,2).*180/pi;
  6. plot(t,v(:,1),t,v(:,2),t,v(:,3),t,v(:,4))
  7. ylabel('Rate')
  8. xlabel('time(s)')
clone this paste RAW Paste Data