I write this, but I don't know how I can do rest of it.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Consider the nonlinear system of three first order differential equations
(The Lorenz Attractor):
diff(x)=10(y-x)
diff(y)=-xz+28x-y
diff(z)=xy-8z/3
a) ( 25 pts.) Write the function to solve the system which will be called through ode23. Please provide the function code.
-----
dy = zeros(3,1);
dy(1) = 10*(y(2) - y(1));
dy(2) = - y(1)*y(3) + 28*y(1) - y(2);
dy(3) = y(1)*y(2)-(8/3)*y(3);
end
I write this, but I don't know how I can do rest of it.
Answers (0)
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!