Professional Documents
Culture Documents
CH 01 - Introduction
CH 01 - Introduction
CH 01 - Introduction
MATLAB PROGRAMMING
Dr Alaa Elsisi
Introduction Loops
Display Variables
Change their
Values
Delete Them
Working
Directory
(Folder)
Different Files
and
Functions
Dr Alaa Elsisi 7/24/2021
13
13 Script or Editor
Write a
Program.
Create a
Function.
Examine Arithmetic
A period in front of the *, /, and ^, respectively, does not change the results
because the multiplication, division, and exponentiation is done with single
numbers. (An explanation for the need for these symbols is provided later
when we deal with arrays of numbers.)
Dr Alaa Elsisi 7/24/2021
17
17 Introduction Cont.
Examine Variables
Examine Vectors
Variables such as a and b that were used in
above are called scalars; they are single-valued.
MATLAB also handles vectors (generally referred
to as arrays),
Examine Vectors
Examine Editor