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

(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

1 Expert Approved Answer
Step: 1 Unlock

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

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 Programming Questions!