MATLAB Help
The speed of an object at an angle A to the horizontal is given by:
ht = v0 * sin(A) - 0.5 * g * t^2
v = v0 - 2 * vo * g * t * sin(A) + g^2 * t^2
where g is the acceleration due to gravity. The projectile will strike the ground when h = 0, which gives the time to hit thit = 2 * vo / (g * sin(A)).
Suppose that A = 40, vo = 35 m/s, and g = 9.81 m/s^2. Use the MATLAB relational and logical operators to find the times when:
a. The height is no less than 18 m.
b. The height is no less than 10 m and the speed is simultaneously no greater than 30 m/s.