Plot combined 2D and 3D phase portraits for chaotic systems

Simple code for plotting visually pleasing 2D and 3D phase portraits for dynamical systems in a single figure
132 Downloads
Aktualisiert 24. Nov 2025

Lizenz anzeigen

The following code can be used to plot the solution of a dynamical system, either with respect to time, or with respect to the relation between the states. The second diagrams are commonly termed phase diagrams or phase portraits, and give the attractor of the system. Some comments are added to make the graph print ready, for papers etc. The Lorenz system is used as an example.
The 3d phase portraits are combined with the 2D projections in a single graph, giving a nice visual representation of the attractor shape.
Illustrative video:
Indicative research papers

Zitieren als

Lazaros Moysis (2025). Plot combined 2D and 3D phase portraits for chaotic systems (https://de.mathworks.com/matlabcentral/fileexchange/159793-plot-combined-2d-and-3d-phase-portraits-for-chaotic-systems), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2023b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Quellenangaben

Inspiriert von: Plot phase portraits for chaotic systems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.1

added video links

1.0.0