Plot phase portraits for chaotic systems

Simple code for plotting visually pleasing phase portraits for dynamical systems

You are now following this Submission

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.
Illustrative video:
Indicative research papers

Cite As

Lazaros Moysis (2026). Plot phase portraits for chaotic systems (https://www.mathworks.com/matlabcentral/fileexchange/157556-plot-phase-portraits-for-chaotic-systems), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.3

new links

1.0.2

added video link

1.0.1

fixed video links

1.0.0