function v = skydiver_func2(m,g,c,t) % Function to calculate skydiver falling speed % for specified parameter values and time vector % using the analytic solution. % % Inputs: mass m (kg) % gravity g (m/s^2) % drag coefficient c (kg/m) % time vector (s) % % Outputs: falling speed vector v (m/s) v = CalcFallingSpeed1(m,g,c,t); end % This end is optional %--------------------------------------------------------- function output = CalcFallingSpeed1(a,b,c,d) output = sqrt(a*b/c)*tanh(sqrt(b*c/a)*d); end % Need this end if we include the first end