CL2014 - MATLAB Programming - Lec02
CL2014 - MATLAB Programming - Lec02
MATLAB Programming
Lecture: 02
Week: 02
Course Instructor
Engr Muhammad Umar Khan Niazi
Office: C1-21, Ext.: 218, Email: [email protected]
1
2 Course Objectives
Working in command window Runtime results
However,
If a path or file name contains spaces, enclose the input in single quotes. For example:
load 'filename with space.mat'
or
Load ('filename with space.mat')
T1_22L7123
4 m-files in MATLAB
The extension of MATLAB files is .m therefore called as m-files
‘Editor Window’ is use to create the m-files.
By default m-files are saved in current working directory.
Like any other computer files, m files can be open/edit/save at
anytime.
Practical demonstration
The simplest way to get the input form the user during run time) is by
using INPUT command
9 Input Command in MATLAB
Once the control will reach to this line, the message string will be
displayed for the information of user
The value will given by the user and followed by the enter key.