Chapter 1 : An Overview of Matlab Flashcards

1
Q

clear the command window

A

clc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

removes all variables from memory

A

clear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

removes the variable var1 and var2 from memory

A

clear var1 var2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

lists the variables currently in memory

A

who

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

lists the current variables and sizes and indicates if they have imaginary parts

A

whos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

generates an array with regularly spaced elements

A

:

colon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

separates elements in an array

A

,

comma

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

suppresses screen printing: also denotes a new row in an array

A

;

semi colon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

continues a line

A

ellipsis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

to simultaneously delete (kill) the end of the line

A

Ctrl k

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

infinity

A

Inf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

indicates an undefined numerical result

A

NaN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

show 4 decimal places

A

format short

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

show 16 digits

A

format long

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

five digits (four decimals) plus exponent

A

format short e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

16 digits (15 decimals) plus exponent

A

format long e

17
Q

two decimal digits

A

format bank

18
Q

rational approximation (43/7)

A

format rat

19
Q

suppresses some blank lines

A

format compact

20
Q

resets to less compact display

A

format loose

21
Q

e^x

22
Q

ln(x)

23
Q

log base 10 x

24
Q

arc sin, cos, tan

A

asin(x), acos(x), atan(x)

25
Q

sin in degrees

26
Q

puts grid lines on a plot

27
Q

enables placement of text with the mouse

A

gtext(‘text’)

28
Q

generates a plot of the array y versus x on rectilinear axes

29
Q

puts text in a title at the top of the plot

A

title(‘text’)

30
Q

adds text to the horizontal axis

A

xlabel(‘text’)

31
Q

adds text to the vertical axis

A

ylabel(‘text’)

32
Q

designates a comment

33
Q

displays the contents, but not the name, of the array A

34
Q

displays the text string enclosed within single quotes

A

disp(‘text’)

35
Q

displays the text in quotes, waits for user input from the keyboard, and stores the value in x

A

x = input(‘text’)