Question: Create a new script a ) At the top of any new MATLAB script, make a comment ( % ) including: assignment title course number

Create a new script
a) At the top of any new MATLAB script, make a comment (%) including:
assignment title
course number (MAE 3724)
your name (Last, First)
the current date
b) Save your script with the name Matlab1.m. SAVE EARLY! SAVE OFTEN!
Create vectors of data
a)[20pt] Create a vector (t) that contains time from 0 seconds to 3 seconds, with a step-size
of 0.01 seconds.
b)20pt Create a vector (y) that contains the position values for y(t)=5*sin(4*t) in
meters.
c)20pt Create a vector (vel) that contains the velocity values for v(t)=20*cos(4*t) in
ms.
Plot data
a)[20pt] Make separate plots of y vs.t and vel vs.t. Use pauses in between plots.
b)[20pt] Make a single plot of y vs.t and vel vs.t on the same graph. Make y a solid red
line and vel a dashed blue line. Make sure to include:
Appropriate graph title
Axis labels and units (you may simply label the y-axis as Amplitude)
Legend (now that multiple lines are on the graph). Your legend should identify the
plot of y as position (m) and the plot of vel as velocity (m/s).
 Create a new script a) At the top of any new

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!