Question: Can anyone please help me with Exercise 2 (a, b, c, and d) on MatLab. I posted the file that need to be modify (LAB04ex1.m)
Can anyone please help me with Exercise 2 (a, b, c, and d) on MatLab. I posted the file that need to be modify (LAB04ex1.m) below (part a) and I also attached my (euler.m) file just in case for (part d). Not sure what to do first with this question. Please help me modify the codes and show me what commands I need to put in the Command Window. Thanks in advance and I will give thumbs up if can correctly help me!!!! THANKS!

Below is LAB04ex1.m file that I need to modify. Please show me what I need to change and why. Thanks!

This is the euler.m file that I created in the previous assignment. Not sure if I need to make changes to it so I just posted with the question. 
2. (a) Consider the modified problem dy dt (L47) dt2 dt The ODE (L4.7) is very similar to (L4.4) except for the y2 term in the left-hand side. Because of the factor y2 the ODE (L4.7) is nonlinear, while (L4.4) is linear. There is however very little to change in the implementation of (L4.4) to solve (L4.7). In fact, the only thing that needs to be modified is the ODE definition Modify the function defining the ODE in LAB04ex1.m. Call the revised file LAB04ex2.m. The new function M-file should reproduce the pictures in Fig L4h. Include in your report the changes you made to LAB04ex1.m to obtain LAB04ex2.m. (b) Compare the output of Figs L4g and L4h. Describe the changes in the behavior of the solution (c) Compare the long term behavior of both problems (L4.4) and (L4.7), in particular the am (d) Modify LAB04ex2.m so that it solves (L4.7) using Euler's method with N = 1000 in the in the short term plitude of oscillations interval 0 S t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
