Question: (3) Plot the solutions from the first two parts in Matlab on the same graph over the interval [0, 2] using the code below.
(3) Plot the solutions from the first two parts in Matlab on the same graph over the interval [0, 2] using the code below. You will need to input the solutions y1 and y2 from above. t linspace (0,2,200); y1 %insert function here y2 =%insert function here. plot(t, yl, 'r',t,y2, 'b'); grid on; legend (Undamped Solution', 'Damped Solution'); title('Mechanical Vibration: by your name'); %insert your name xlabel('Time (sec)'); ylabel('Response (meters)'); exportgraphics (gcf, "hw4.6.png");
Step by Step Solution
3.33 Rating (162 Votes )
There are 3 Steps involved in it
The solution from the first two parts in MATLAB on the same graph over the interval 02 Generate taxis t linspace02200 Insert solutions from the first ... View full answer
Get step-by-step solutions from verified subject matter experts
