100 likes | 227 Views
Introduction to Programming on MATLAB. Ecological Modeling Course Sep 11th, 2006. MATLAB Windows. Command Window Workspace Command History Editor Window. 1. Command Window. It is the main window where you type commands directly to the interpreter.
E N D
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006
MATLAB Windows • Command Window • Workspace • Command History • Editor Window
1. Command Window • It is the main window where you type commands directly to the interpreter. • It can show you errors when you debug MATLAB files. (e.g. type of error or location of error)
Examples for applications: • 1. Save data • 2. View data value • 3. Plot figures
2. Workspace • Current Directory ----your work need to be processes in one directory • Workspace ----show you the name of each variable and its size
3. Command History • Show you a lot of statements which were recently used in the command window
4. Editor Window • It is a simple text editor where you can load, edit and save MATLAB programs. • It has a menu command (Debug / Run).
Variable types • Scalar • Vector • Matrix
Data import • Direct input in your m-file • Read data from xls-file
Technical route Input Output Ecosystem Model • Scalar • Vector • Matrix • Scalar • Vector • Matrix • Equations • Algorithm Forward analysis