How do convert the following set of time dependent differential equations into a set of discrete equations? Please provide code.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
![bouali attractor.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269688/bouali%20attractor.jpeg)
0 Kommentare
Antworten (1)
Pravin Jagtap
am 6 Feb. 2020
Hello Varun,
I am assuming the constant time step 'dt'. Please refer following snipet to get an idea and write the code
x(k+1) = x(k) + dt* f(x,y,z); % same for y(k+1) and z(k+1)
Itereate this over number of time steps you want. You can update 'x', 'y' and 'z' variables in the same for loop.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!