You are on page 1of 7

MYANMAR AEROSPACE ENGINEERING UNIVERSITY

Department of Electrical Systems & Instrumentation

Week1
Outlines of Presentation
- MATLAB Windows
- Using Variables
- Scalar Operations
MATLAB Windows

- Command Window
- the main window where you type commands directly to the MATLAB interpreter
- Command History
- records the commands
- Workspace Window
- contains variables that you create or import into MATLAB from data files or other programs
- Current Folder Window
- lists all the files in the active directory
Using Variables

- Variable Names
- start with a letter
- length 63 (use namelengthmax command)
- only allowable characters are letters, numbers and underscore (use isvarname command to
check)
- case sensitive
- useful commands (keywords, which)
Scalar Operations

Table 1. Arithmetic Operations Between Two Scalars


Continued;

- Order of Operations
- first perform calculations inside parentheses, working from the innermost set to the outermost
- perform exponentiation operations
- perform multiplication and division operations, working from left to right
- perform addition and subtraction operations, working from left to right
Ref(1) Pg-24, PE2.3
Pg-55,Pb 2.1
Pg-25 Eg2.1
Pg-56 Pb 2.3 to 2.7
References

(1) Title –MATLAB for Engineers


ISBN - 978-0-13-210325-1

You might also like