{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

parachutistBasic

# parachutistBasic - v0 cd m(1 exp cd m time(i end Calculate...

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

% Script to estimate the velocity and distance travel by a parachutist clear all % Given in the statement of the problem: g = 9.81; % acceleration of gravity (m/s-s) cd = 12.5; % drag coefficient (kg/s) m = 68.1; % mass of the person (kg) v0 = 0; % initial speed (m/s) tc = 8; % time to open the parachute for i=1:1:20 % index for loop time(i) = i -1; % time in seconds v(i) = v0 * exp (-cd / m * time(i)) + g*m/cd *(1- exp (-cd /m * time(i))); x(i) = g*time(i) / (cd / m) - g/ (cd / m).^2 .* (1- exp (- cd / m * time(i))) ...
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .. + v0/( cd / m) .* (1- exp (- cd / m * time(i))); end % Calculate using vector operations in Matlab t = 0:1:20 d = g*t / (cd / m) - g/ (cd / m).^2 .* (1- exp (- cd / m * t)) . .. + v0/( cd / m) .* (1- exp (- cd / m * t)); figure plot(t,d,'o-') xlabel('Time (seconds)') ylabel('Distance Traveled (m)') grid % figure % plot(time,v,'o-') % xlabel('Time (seconds)') % ylabel('Speed (m/s)') % grid % % figure % plot(time,x,'o-') % xlabel('Time (seconds)') % ylabel('Distance Traveled (m)') % grid...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online