Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1 Solving ODE initial value problem Consider the system of ODES = a(y - x), III -xz + bx y, a = xy cz,
Problem 1 Solving ODE initial value problem Consider the system of ODES = a(y - x), III -xz + bx y, a = xy cz, where the parameters a = 10, b = 28, c= 8/3. We would like to solve this system for t E (0,20 with initial condition: x(0) = 10, y(0) = 5, 2(0) = 20. Before attempting the following, you may find it helpful to review the CANVAS file Test Code ode45.m that we demonstrated in the class. .m to specify the (a) Write a MATLAB function dynamics. dynamics (meaning the right hand sides) of the above system of ODES. (b) Write another MATLAB script .m that calls your MAT- LAB function in part (a), and uses MATLAB solver ode45 to solve the above ODE initial value problem in the given time interval with the given initial condition. Your code should generate windows: (i) 3D blue lineplot of x versus y versus z, superimposed with the initial condition plotted as a large red point. To make this 3D plot, look up the command plot3 in MATLAB documentation. Please use grid on and view(9,9.5) for this figure. (ii) 2D lineplots for the three time-series: t versus x, t versus y, and t versus z, all in the same figure window. Please use the legend() command for this figure to help understand which curve is which
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started