Problem 4
Assume that array arrayl is defined as shown, and determine the contents of the following sub-arrays. \(\operatorname{array} 1=\left[\begin{array}{rrrrr}1.1 & 0.0 & 2.1 & -3.5 & 6.0 \\\ 0.0 & 1.1 & -6.6 & 2.8 & 3.4 \\ 2.1 & 0.1 & 0.3 & -0.4 & 1.3 \\ -1.4 & 5.2 & 0.0 & 1.1 & 0.0\end{array}\right]\) a. array \(1(3, t)\) b. array \(1(:, 3)\) c. array \(1\left(1: 2: 3,\left[\begin{array}{lll}3 & 3 & 4\end{array}\right]\right)\) d. array \(\left.1\left(\begin{array}{ll}1 & 1\end{array}\right], 4\right)\)
Problem 10
Position and Velocity of a Ball. If a stationary ball is released at a height \(h_{o}\) above the surface of the Earth with a vertical velocity \(v_{o}\), the position and velocity of the ball as a function of time will be given by the equations $$ \begin{gathered} h(t)=\frac{1}{2} g t^{2}+v_{0} t+h_{0} \\ v(t)=g t+v_{0} \end{gathered} $$ where \(g\) is the acceleration due to gravity \(\left(-9.81 \mathrm{~m} / \mathrm{s}^{2}\right), h\) is the height above the surface of the Earth (assuming no air friction), and \(v\) is the vertical component of velocity. Write a MATLAB program that prompts a user for the initial height of the ball in meters and velocity of the ball in meters per second, and plots the height and velocity as a function of time. Be sure to include proper labels in your plots.