Question: Write a MATLAB program to do the following: 1. Evaluate the formula h(t)=4.0+6.0te0.5t4.0e0.25tcos(0.75t) over the time range 0.0t20.0s. 2. Plot h(t) vs t ( t

Write a MATLAB program to do the following: 1. Evaluate the formula h(t)=4.0+6.0te0.5t4.0e0.25tcos(0.75t) over the time range 0.0t20.0s. 2. Plot h(t) vs t ( t on the x-axis and h(t) on the y - axis) in a figure window. The plot should be appropriately annotated and have grid lines. 3. Use an array comparison and indexing to extract the t and h(t) values for the time range 5.0t12.0s. The t and h(t) values for this range should be stored in variables named tPart and hPart. 4. Create a second figure window and plot h(t) vs t for the 5.0t12.0s range. The plot should be appropriately annotated and have grid lines. Annotate your plot with axis labels including units and grid lines. Useful MATLAB functions for creating and annotating plots include: figure, plot, grid, subplot, xlabel, ylabel, title, legend
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
