
List of Useful Commands:
w
w
h
h
o
o
Lists current variables located in the workspace.
w
w
h
h
o
o
s
s
A long form of
w
w
h
h
o
o. It lists all the variables in the
current workspace
, together with information about their
size, bytes, class, etc.
c
c
l
l
e
e
a
a
r
r
Clear variables and functions from memory.
h
h
o
o
m
m
e
e
Moves the cursor to the upper left corner of the command
window and clears the visible portion of the window. Use
the scroll bar to see what was on the screen previously.
c
c
l
l
c
c
Clears the command window and homes the cursor.
q
q
u
u
i
i
t
t
Terminates Matlab.
The format function:
The
f
f
o
o
r
r
m
m
a
a
t
t function controls the numeric format of the values displayed by
Matlab. The function affects only how numbers are displayed, not how
Matlab computes or save them. Here are the different formats, together with
the resulting output produced from a vector
x
x with components of different
magnitudes [2]. In the command window type:
“
f
f
o
o
r
r
m
m
a
a
t
t
s
s
h
h
o
o
r
r
t
t”
and afterwards:
“x”
for retrieving the
x
x vector that you have created before to get:
“x =
2.1250 0.0123”
Note that with this format only 4-decimals place are being used (in total 5
digits). Try also the following format commands to see what you get:
f
f
o
o
r
r
m
m
a
a
t
t
s
s
h
h
o
o
r
r
t
t
e
e
Floating-point format with 5 digits.
f
f
o
o
r
r
m
m
a
a
t
t
s
s
h
h
o
o
r
r
t
t
g
g
Best of fixed or floating-point format with 5 digits.
Comentários a estes Manuais