Question: Write a function M - file that implements ( 8 ) in the interval 0 t 6 0 . Note that the initial condition must

Write a function M-file that implements (8) in the interval 0t60. Note that the initial
condition must now be in the form y0,v0,w0 and the matrix Y, output of ode45, has now three
columns (from which y,v and w must be extracted). On the same figure, plot the three time series
and, on a separate window, plot the phase plot using
figure(2); plot3(y,v,w);
hold on; view ([-40,60])
xlabel('y'); ylabel('v=y'''); zlabel('w=y''''');
Do not forget to modify the function defining the ODE.
The output is shown in Figure 9. The limits in the vertical axis of the plot on the left were delib-
erately set to the same ones as in Figure 8 for comparison purposes, using the MATLAB command
ylim?([-2.8,2.8]).
You can play around with the 3D phase plot, rotating it by clicking on the circular arrow button
in the figure toolbar, but submit the plot with the view value view ([-40,60])(that is, azimuth
=-40, elevation =60.
 Write a function M-file that implements (8) in the interval 0t60.

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!