chapter 2 Flashcards

1
Q

variable

A

holds an item, item can be changed but must be defined before running calculations

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

interpreter

A

negotiates with computing system to allocate memory location for new variable

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

assignment operator

A

= sign

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

base workspace

A

stores variables created at command line

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

identifier

A

variable’s name
- start w/ letter
- case sensitive
- no spaces

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

keywords that CANT BE USED AS IDENTIFIER

A

break
case
catch
otherwise
parlor
classdef
continue
else
return
spmd
etc

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

camel case

A

capitalizing first letter of each word

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

data type

A

specific class each MatLab variable has that indicates type of data

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

numeric variable

A

stores number

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

integer number

A

positive or negative number that isn’t a decimal
- useful when counting finite items
- used when creating/assessing array

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

array

A

collection of variables
- stored with 1, 2, 4, 8 bytes

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

signed value

A

positive and negative integers

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

unsigned value

A

only positive integers

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

real number

A

positive or negative number that may have decimal (Matlab default)

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

range

A

indication of numbers that can be represented smallest to largest

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

unsigned 8bit range

A

0 to 255

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

signed 8bit range

A

-127 to 128

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

int

A

signed integer

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

uint

A

unsigned integer

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

int8

A

signed integer in 8 bits

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

floating point numbers

A

another name for real numbers (have decimal)

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

normalized scientific notation

A

scientific notation with one number before the decimal point

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

double percision

A

68 bit representation of floating point (STANDARD)

24
Q

single percision

A

38 bit representation of floating point

25
RealMax
constant that gives largest number in MatLab
26
RealMin
constant that gives smallest number in MatLab
27
literal constant
that appears in statement
28
INF
infinity, too big for matlab
29
-INF
negative infinity, too small for Matlab
30
MatLab Default
double precision and real numbers
31
complex numbers
have real and imaginary part (I and j) I^2 = -1 j^2 = -1 j is preferred
32
expression
combination of variables, constants, and operators
33
precedence rule
operations are done in order they were written
34
continuation
" ... " is used when expression is too long and is continues on next line
35
scalar
single number
36
scalar variable
variable that holds one number
37
mathematical constants
variable with predefined constant (ex: pi)
38
NaN
not a number (ex: 0/0)
39
overflow
result exceeds max value that can be stored within a variable
40
up arrow key
retrieve previous commands (executes code multiple times, repeat)
41
string scalars
stores text in variable with " "
42
ASCII Standard
used to encode letters to bits (characters have # equivalent)
43
character
' '
44
string
" "
45
accuracy
how close floating point rep is to desired value determined by # of bits used, larger is more accurate
46
rounding error
difference between calculated estimate of number and actual value estimate - actual
47
truncation error
when least significant digits to right of decimal are discarded
48
absolute error
measure of accuracy, difference between calculated value and actual value calc value - actual value can be found with eps(number)
49
relative error
measure of accuracy calc value - actual value / actual value
50
experimental error
measure of accuracy using double precision floating point rep. relative accuracy won't exceed eps(1)
51
rounding error VS experimental error
rounding error = finite precision on calculations experimental error = limited accuracy of measurement
52
MatLab binary format
place to save and load variables
53
save variables into current workspace
save("fileName")
54
save all variables into file w/ name
save("fileName.mat")
55
save select variables
save("fileName", "var1", "var2")
56
load variable from Matlab file
load("fileName")
57
wizards
sequence of interactive steps that eases use of specific software features used to import data from variety of file types