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
引用格式
Lazaros Moysis (2026). Plot phase portraits for chaotic systems (https://ww2.mathworks.cn/matlabcentral/fileexchange/157556-plot-phase-portraits-for-chaotic-systems), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2023b
兼容任何版本
