Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 4.4. The following set of equations is based on a famous example of a chaotic system, the Lorenz attractor (see https://greenteapress.com/matlab/lorenz): xi+1yi+1zi+1=xi+(yixi)dt=yi+[xi(rzi)yi]dt=zi+(xiyibzi)dt 1. Write
Exercise 4.4. The following set of equations is based on a famous example of a chaotic system, the Lorenz attractor (see https://greenteapress.com/matlab/lorenz): xi+1yi+1zi+1=xi+(yixi)dt=yi+[xi(rzi)yi]dt=zi+(xiyibzi)dt 1. Write a script that computes the first 10 elements of the sequences X,Y, and Z and stores them in vectors named X,Y, and Z. Use the initial values X1=1,Y1=2, and Z1=3 with the values =10,b=8/3, r=28, and dt=0.01. 2. Read the documentation for plot3 and comet3, and plot the results in three dimensions. 3. Once the code is working, use semicolons to suppress the output and then run the program with sequence lengths of 100,1,000, and 10,000
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