Beruflich Dokumente
Kultur Dokumente
Lecture 1
Eng. Mohamed Awni
Electrical & Computer Engineering
Dept.
Agenda
What is Matlab & history?
why use Matlab?
Matlab Structure.
Main Matlab Window.
Matlab as calculator.
Cleve Moler
Matlab Structure
Matlab
Series of Matlab
commands
m-files
(Batch Mode
Command Line
(Interactive Mode)
mat-files
functions
Command execution
like DOS command
window
Data
storage/
loading
Command
Window
Current Directory
Command
History
Workspace
Editor Window
Thecommands
main
window
characterized
by
theyou
MATLAB
command
prompt
(>>)recorded,
This
This
sub
is where
window
alltyped
lists
your
all
files
variables
from the
that
current
have
directory
generated
are listed.
so
far along
with there type
All
on
MATLAB
prompt
in
the
command
window
get
This is where you write, edit, create, and save your own script or programs in fileseven
called
and
size.
across
m-files.multiple session in this window.
6
Matlab as calculator
As an example of a simple interactive calculation, just
type the following expression 1 + 2 3 at the prompt
command >>
Press Enter.
Matlab as calculator
Assigning the result of computation to the variable x
Exercises
10