Question: 1. Evaluate the formula g(f) = 5.0 - 4.8e^-0.4tover the time range 0.0 1 12.0 seconds. Use element by element operations only where appropriate. Make
1. Evaluate the formula g(f) = 5.0 - 4.8e^-0.4tover the time range 0.0 1 12.0 seconds. Use element by element operations only where appropriate. Make sure you select an increment in your time vector that is small enough to give you a smooth curve.
2. Plot g(t) vs t (t on the x-axis and g(t) on the y-axis) in a figure window. The MATLAB function figure(1) will create a new active figure window for plotting. The MATLAB function plot(x,y) will plot the values in the 1D array y versus the values in the 1D array x in the currently active figure.
3. (Optional) 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.
4. In MATLAB the function exp(X) gives the value of the exponential function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
