File Exchange

image thumbnail


version (66.3 KB) by Giampiero Campa
Nonlinear systems with attractors


Updated 18 Dec 2017

View License

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.


Cite As

Giampiero Campa (2020). Attractors (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

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?

carlo casorzo

sri red

I downloaded and yet to evaluvate it
-- Germany

Patricio Vergara

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.

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: 3DScope