Professional Documents
Culture Documents
Programming
Chapter No. 2
Introduction to MATLAB
What is MATLAB?
• What is M-File?
• An m-file is also called script file.
• It is a simple text file where you can
place MATLAB commands.
• When the file is run, MATLAB reads the
commands and executes sequentially.
• All m-file names must end with the extension
'.m' (e.g. test.m).
Creating M-File
To create an m-file,
1) type edit at the command
window, or
2) Press this button.
Creating M-File