This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: w2(1)=500; %starting angular velocity l=length(T); %determine legnth of vector to use in loop for j= 1:(l-1) %same loop as above. .. w2(j+1)=w2(j)-(k^2/(J*R)*w2(j)^2)*(T(j+1)-T(j)); %angualr velocity equation end plot(t,w, '.-' ,T,w2, 'r-x' ) %plot w and w2 as function of time xlabel( 'Time (s)' ) ylabel( 'Angular Velocity (rad/s)' ) title( 'Angular Velocity vs. Time' ) Output: 2 4 6 8 10 12 14 16 18 20 100 150 200 250 300 350 400 450 500 Time (s) Angular Velocity (rad/s) Angular Velocity vs. Time At t = 4s, the model with fewer iterations 277.8 rad/s, and about 341.08 for the equation with intervals of .5s....
View Full Document
This note was uploaded on 11/16/2010 for the course EGR 102 taught by Professor Hinds during the Spring '09 term at Michigan State University.
- Spring '09
- Moment Of Inertia