Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this matlab code. I have posted what i am suppose to do. could someone better explain this to me. im lost.

image text in transcribed

image text in transcribed

Please help me with this matlab code. I have posted what i am suppose to do. could someone better explain this to me. im lost. thank you

1. (a) Modify the function ex.with.2eqs to solve the IVP (LA.4) for 0 st50 using the MATLAB routine ode45. Call the new function LAB04ex1. Let [t, Y] (note the upper case Y) be the output of ode45 and y and v the unknown functions Use the following commands to define the ODE: function dYdt- f(t,Y) y_Y (1); v.Y (2); Plot y(t) and v(t) in the same window (do not use subplot), and the phase plot showing v vs y in a separate window. Add a legend to the first plot. (Note: to display (t) y'(t), use 'v(t)-y'"(t)') Add a grid. Use the command ylim([-1.2,1.2]) to adjust the y-limits for both plots. Adjust the r-limits in the phase plot so as to reproduce the pictures in Figure LAg Include the M-file in your report

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago