Question: Please solve all parts and submit graph photos and code snapshot thanks 2. Create vectors of data a) Create a vector (t) that contains time
2. Create vectors of data a) Create a vector (t) that contains time from 0 seconds to 3 seconds, with a step-size of 0.01 seconds. Create a vector (y) that contains the position values for y(t)-5-sin (4) in meters. Create a vector (vel) that contains the velocity values for u(t) = 20 . cos(4 . t) in m/s. b) c) 3. Plot data Make separate plots of y vs. t and vel vs. t. Use pauses in between plots. Make sure to include: a) i. Appropriate graph title ii. Axis labels and units b) Make a single plot of y vs. t and ve1 vs.t on the same graph. Make y a solid red line and vel a dashed blue line. Make sure to include: i. Appropriate graph title i. Axis labels and units (you may simply label the y-axis as Amplitude) ii. 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)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
