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

Question 2 (10 Points) Newton\'s laws of motion are used to derive the following

ID: 3705537 • Letter: Q

Question

Question 2 (10 Points) Newton's laws of motion are used to derive the following formula for the maximum height h achieved by an object thrown with a speed at and angle ? to the horizontal: U2 sin ? 2 g where g-98 m/sec Create a documented MATLAB program (maxheight.m) with a table showing the maximum height for each of the following values of speed and angle. Use the command array2table in your program. Use vectorization techniques to form the matrix by taking the product of the two vectors do not use a for-loop V 10.12 14 16 18.20 m/s ?-50". 60", 70". 800

Explanation / Answer

PLEASE REFER BELOW CODE

close all
clear all
clc


v = [10 12 14 16 18 20]; %GIVEN VELOCITY VECTOR
theta = [50 60 70 80 90 100]; %GIVEN THETA VECTOR
g = 9.8; %GIVEN G VALUE

%given formula
h = v.^2 .* sind(theta) / (2 * g);
H = [v;theta;h]; %VECTORIZE ALL THREE ARRAYS

data2_txt={'Velocity','Theta','Maximum Height'}; %LABEL FOR EACH ROW
T = array2table(H,'RowNames',data2_txt)  

PLEASE REFER BELOW OUTPUT


T =

3×6 table

H1 H2 H3 H4 H5 H6  
______ ______ ______ ______ ______ ______

Velocity 10 12 14 16 18 20
Theta 50 60 70 80 90 100
Maximum Height 3.9084 6.3626 9.3969 12.863 16.531 20.098

>>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote