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

Matlab: The fastest speed of a thrown football at the NFL combines is 60 mph, Ca

ID: 3758064 • Letter: M

Question

Matlab: The fastest speed of a thrown football at the NFL combines is 60 mph,

Can you please help on how to make a function and use it in a different window.

The fastest speed of a thrown football at the NFL combines is 60 mph, thrown by Logan Thomas of Virginia Tech in 2014. If Thomas threw the ball at a 45 degree angle, plot the path of the ball over time. Use the following equation h(t) = g/2 * t2 + v*t where g 9.8 m/s where v = 60 mph (make sure you convert to m/s) where t= 0 to 10 seconds Plotthe height of the football over time Use ginput function to estimate the max height of the ball and the time the ball hits the ground. Use the disp command to display the results a. b. c.

Explanation / Answer

CODE :

// Using function

[nx,mx] = size(xout);

% It can very well happen that due to the "variable step-size" the number

% of points in "xout" is large.

% For animation purpose we just take every 5-th point:

nx5 = floor(nx/5);

[x,y] = ginput;

plot(t1(1),x1(1,1),'o');

axis([0,max(t1),0,25]);

xlabel('time [sec]');

ylabel('h(t) [m]');

title('Height of a bouncing ball');

hold on;

for i=2:nx5;

k = 5*i;

plot(t1(k),xout(k,1),'o');

end;

hold off;

// to display the results

se1 = strel('height',11)

se2 = strel('time', 4)