Question: Just need the variables solved using Matlab. Thanks in advance. Write a MATLAB program to do the following 1. Evaluate the formula g(t)=5.04.8e0.4r over the

Write a MATLAB program to do the following 1. Evaluate the formula g(t)=5.04.8e0.4r over the time range 0.0t12.0 seconds. Use ciement by element operations colly 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 sindtcw for giolting The MATLAB function piotix.y) will plot the values in the 10 array y versus the values in the 10 array x in the currentily active figure 3. (Optionai) Annotate your plot with axis labels incluging units and grid lines. Usefur MATLAB functions for creafing and annorating pliots incirct: Afaire. piot. grid, subpiot. xlabel, ylabel, tite, legend. 4 In MATLAE the function exp(x) gives the value of the exponential function e Script O 2.1. Generate the input - generate time vector using 8,1 as increnent for 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
