Chapter 1 : An Overview of Matlab Flashcards
1
Q
clear the command window
A
clc
2
Q
removes all variables from memory
A
clear
3
Q
removes the variable var1 and var2 from memory
A
clear var1 var2
4
Q
lists the variables currently in memory
A
who
5
Q
lists the current variables and sizes and indicates if they have imaginary parts
A
whos
6
Q
generates an array with regularly spaced elements
A
:
colon
7
Q
separates elements in an array
A
,
comma
8
Q
suppresses screen printing: also denotes a new row in an array
A
;
semi colon
9
Q
continues a line
A
…
ellipsis
10
Q
to simultaneously delete (kill) the end of the line
A
Ctrl k
11
Q
infinity
A
Inf
12
Q
indicates an undefined numerical result
A
NaN
13
Q
show 4 decimal places
A
format short
14
Q
show 16 digits
A
format long
15
Q
five digits (four decimals) plus exponent
A
format short e