This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %function of time. dydt=(1500/1200)*sin(t(i))^2-(500/1200); fprintf('%2.1f %5.4f %5.4f\n', t(i),y(i+1),dydt); %can't get the last iteration to be displayed end plot(t,y,'r'); xlabel('time'); ylabel('depth'); title('problem 1.8'); end...
View Full Document
This note was uploaded on 09/27/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.
- Spring '09