Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

USE MATLAB to create an m.file that will Compute the velocity of a free-falling

ID: 3783001 • Letter: U

Question

USE MATLAB to create an m.file that will Compute the velocity of a free-falling parachutist using Euler's method for the case where m = 80 kg and cd=0.25 kg/mPerform the calculation from t = 0 to 20 s with a step size of 1 s. Use an initial condition that the parachutist has an upward velocity of 20 m/s at t = 0. At t = 10 s, assume that the chute is instantaneously deployed so that the drag coefficient jumps to 1.5kg/m USE the following equation velocity= v(t)+(g-(cd/m)*(v*abs(v)))*t; USE MATLAB to create an m.file that will Compute the velocity of a free-falling parachutist using Euler's method for the case where m = 80 kg and cd=0.25 kg/mPerform the calculation from t = 0 to 20 s with a step size of 1 s. Use an initial condition that the parachutist has an upward velocity of 20 m/s at t = 0. At t = 10 s, assume that the chute is instantaneously deployed so that the drag coefficient jumps to 1.5kg/m USE the following equation velocity= v(t)+(g-(cd/m)*(v*abs(v)))*t; USE MATLAB to create an m.file that will Compute the velocity of a free-falling parachutist using Euler's method for the case where m = 80 kg and cd=0.25 kg/mPerform the calculation from t = 0 to 20 s with a step size of 1 s. Use an initial condition that the parachutist has an upward velocity of 20 m/s at t = 0. At t = 10 s, assume that the chute is instantaneously deployed so that the drag coefficient jumps to 1.5kg/m USE the following equation velocity= v(t)+(g-(cd/m)*(v*abs(v)))*t;

Explanation / Answer

function ANS = onedotfive() g = 9.8; % gravity m = 80; % mass of parachutist startTime = 0; step = 1; endTime = 20; t = (startTime:step:endTime)'; % time vector v = (0:(endTime-startTime)/step)'; % velocity vector v(1) = -20; % initial velocity for i = 1:(endTime-startTime)/step if i > startTime + 10/step c = 1.5; else c = 0.25; end slope = g-(c/m)*v(i); v(i+1) = eulermethod(v(i), slope, step); end plot(t,v); ANS = horzcat(t,v); end