B8b Nonlinear Systems MATLAB Workshop Guidance Notes
MATLAB is a mathematical workshop application that can do many powerful operations. It is especially useful
for performing numerical work, and has an integrated programming language. For this workshop there are
several MATLAB script files provided that contain programs that illustrate numerically many of the concepts
from the course. Many mathematical results in nonlinear dynamics, especially for chaotic systems are known
only numerically, therefore the aim of these scripts is to encourage you to experiment with these nonlinear
systems to gain some hands-on experience, and to assist with answering some of the problem sheets questions
from the course.
These script files can be obtained from the website:
Click on each file in turn and download them to your local directory. Start MATLAB by clicking on the MATLAB
icon on the Linux desktop (or the appropriate menu item if you are using Windows).
Running the Script Files
Each script file is run by typing the name of the script in the MATLAB command window, i.e. to run file
'Lorenz.m' you type 'Lorenz' at the MATLAB prompt. You must make sure that MATLAB's working directory is
the same as the one where the files are stored. You can find out the working directory by typing the MATLAB
'pwd'. Changing the directory can be accomplished using the 'cd' command, and you can list the directory
contents using the 'ls' command.
Editing the Scripts
Using the MATLAB command 'edit script_file.m' (with 'script_file.m' replaced with the name of the script you
want to edit) loads the script file into the script text editor, where changes can be made to the script. After you
have made the changes to the script you want, pressing the 'save' button in the script editor updates the file on
disc. It can then be re-run with the changes you have made.
General Notes about the Scripts
Note that in the scripts, the variable N is the num