logo for matrixlab-examples.com
leftimage for matrixlab-examples.com

Writing a Matlab Program

This quick video tutorial will show you how to write and run a Matlab program.
 
The command window can take individual commands, one at a time. However, you can create complex Matlab code (m-files or scripts), using the editor window.

You can save and run the lines of code using the icons at the top of the editor window. Also, you can edit your script just as it's done in any text editor. It’s important to be aware of the current directory, so that you can locate your files. You may modify your path so that Matlab can find your programs.


The video also shows how to create functions. One function has input parameters and can also call by name other functions or scripts, so that you can produce clean and well structured multi-function scripts.


 From 'Matlab Program Video' to home

 From 'Matlab Program Video' to 'Tutorials Menu'
 
Using Matlab

Matlab code

Top




footer for matlab program video page