RCN Workshop

RCN Marine Disease Modeling and Transmission Workshop

May 11-15, 2015

Center for Coastal Physical Oceanography
Old Dominion University
Norfolk, Virginia 23529

Workshop Information

Workshop Resources

Workshop Schedule

Attendees

Travel

Map

Workshop Resources

An Introduction to MATLAB at this link

MATLAB code for the various models

Each of the models described below is programmed in four matlab scripts. Matlab scripts are required to end with .m.

The main (driver) script sets up the model (defines parameter values, sets initial conditions and run length) and then runs the model for the specified time. The main script also renames the solution to have more convenient names (S, I, D, P).

The structure of the model is specified in the script starting with RHS which defines the right-hand-side of the time dependent ODEs defining the model. These control the interaction of the various parts of the model.

The value of the various parameters of the model are specified in the script with names starting with PAR. The variable names are chosen to be descriptive. All parameters are part of a matlab structure (called PAR) as an easy way to pass all of the values around.

The final script, starting with PLOT, makes plots of the model solution. These are mainly the number of animals in various model categories over time. Some graphs show the rate of some model processes. It should be easy to add other figures.

MATLAB commands to run a model

MATLAB needs to be installed on the computer you are using. Download the model scripts (below) and put them in a folder on your computer. Start MATLAB. The large window in the middle of the page that opened is (most likely) the command window. MATLAB acts on commands typed into this window. The MATLAB prompts are ">> ".

Make sure that the current active directory is the folder in which you put the matlab scripts. The line just above the command window tells you what folder is the current folder MATLAB is working in.

At the MATLAB prompt in the command window, type abalone1 to run the first model. This will set the parameters and run the model.

To plot the model solution, type PLOTabalone1. One or more figures will appear on the screen.

MATLAB has an editor which is available with the "open" button on the upper left of the MATLAB page. Use this editor to change parameter values, graphics or model interactions.

Any editor can be used to change the MATLAB scripts, the built-in one has convenient features. The only requirement is that the files must be plain text (no word processors).

Details of the models

Useful References