Question: ( 5 0 point ) Assume that a , b , c and d are defined as follows: a = [ 2 1 - 1

(50 point) Assume that a,b,c and d are defined as follows:
a=[21-14],b=[-1302],c=[21],d=eyc(2)
Use MATLA to calculate the results of the following expressions if they are legal. If an
operation is illegal, explain why.
a+b
a*b
a .* d
a*c
a.* c
a??b
a.\b
a*??b
-115
5??-11
round (-115)
ceil(-115)
floor(-11/5)
(50 points) Position and Velocity of Ball If a stationary ball is released at a height h0 above the
surface of the earth with a vertical velocity v0, the position and velocity of the ball as a function
of time will be given by the equations
h(t)=12gt2+v0t+h0
v(t)=gt+v0
Where g is the acceleration due to gravity (-9.81ms2),h is the height above the surface of the
Earth (assuming no air friction), and v is vertical component of velocity.
Write a MATLAB program that prompts a user for the initial height of the ball in meters
and the initial vertical velocity of the in meters per second.
Plot the height and vertical velocity as a function of time for the first 25 seconds. Be sure
to include proper labels in your plots.
( 5 0 point ) Assume that a , b , c and d are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!