This is a collection of Simulink blocks implementing simple nonlinear dynamical systems that have attractors in their state space.
A general 3D Simulink scope (coded in the s-functions sfun3d.m) is used to display (in 3D) the evolution of the system during the simulation.
Currently (Jan 2017), the featured systems are Lorenz, Van Der Pol, simple Lotka-Volterra, competitive N-D Lotka Volterra and Henon. Note that this only works for versions 2014b and later.
Giampiero Campa (2020). Attractors (https://www.mathworks.com/matlabcentral/fileexchange/7939-attractors), MATLAB Central File Exchange. Retrieved .
For versions 2014b and later, as a temporary fix, you can delete the sfunxyz.m file and install 3Dscope:
Then everything except henon2d will work. I might get around to update this submission in the future.
Note that some of the models are based on a 3D scope that does not work properly for 2014b and later versions. I will try to fix it at some point. If you need it sooner rather than later please let me know.
Simple, practical and well done. Congrats.
I am modelling population growth using Lotka-Volterra competitive equations (not the predatory - prey ones).
Did you use these equations in a model as well?
I downloaded and yet to evaluvate it
how download this file???... because, that's not posible.... I interesting to download to evaluate that, but the page not response the download...
Updated the 3DScope block and its s-function to the latest (and probably last ever) and greatest.
Fixed minor issues.
Updated the 3D scope function, since the older one did not work anymore for later MATLAB versions. The new one (also available in the "3DScope" File Exchange contribution) is more capable, faster, simpler and corrects several issues.
Added several types of Lotka-Volterra systems.
Inspired by: 3DScope