Rocket - %t=time in s%units of velocity=km/s units of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function Rocket(y,t) %Problem 19.11 % %Data collected for the distance traveled versus time for a rocket. This is %only for equally spaced data. -->delta(v)=delta(x)/delta(t), this %represents the average velocity for the rocket at a given position. %y=distance in km
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %t=time in s %units of velocity=km/s, units of acceleration=km/s^2. step=(t(2)-t(1))/2; vel=gradient(y,step); acc=gradient(vel,step); fprintf('\nVelocity=\n') fprintf('%5.4f\n',gg1) fprintf('\nAcceleration=\n') fprintf('%5.4f\n',gg2)...
View Full Document

Ask a homework question - tutors are online