Tutorial 3.1 - Matrix Operation and Manipulation
Tutorial 3.1 - Matrix Operation and Manipulation
10. A ball is dropped on the floor bounces back many times, reaching a lower height after each bounce.
When the ball impacts the floor its renounced velocity is 0.85 times the impact velocity. The velocity v
with which the ball hits the floor after being dropped from a height h is given by v = √ . The time
between successive bounces is given by t =v/g, where v is the upward velocity after the last impact. If
the ball is dropped from a height of 2m, determine the time at which the ball hits the floor for the first
eight bounces. Set t=0 when the ball hits the floor for the first time. (Calculate the velocity of the ball
when the ball hits the floor for the first time). Derive a formula for the time of the following hits as the
function of the bounce number. Then create a vector n = 1, 2, …, 8 and use the formula( use element-by-
element operations) to calculate the vector with the values of t for each n). Display the results in two-
column table where the values of n and t are displayed in the first and second columns, respectively.
11. The dot product can be used for determining the angle between vectors:
Q = cos-1 ( )
Use Matlab built-in function cosd, sqrt and dot to find the angle (in degrees) between
r1 = 7i - 5j + 4k and r1 = 2i + 5j - 3k.
Recall that r = √