chapter 5 Flashcards

(50 cards)

1
Q

matrix

A

rectangular array of items in rows or columns
interchangable with array

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

scalar

A

only store single item

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

array element

A

each item in array

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

vector

A

array with one dimension

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

numeric array

A

array with numbers

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

homogenous array

A

array with elements of same class type

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

inhomogeneous array

A

elements of different class types

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

row array

A

1D array with 1 row and n columns

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

brackets

A

write row’s elements, aka array construction operator

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

size of array

A

given as rows x columns

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

paranthesis

A

used to access individual element (index)

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

indexing the array

A

process of accessing arrays elements with an index

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

first index is

A

1

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

arithmetic operation with a scalar

A

array operation that applies arithmetic with scalar to each element in array
ex: myArray-10
subtracts 10 from each element in array

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

circshift(Array, #)

A

shifts over by # spaces

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

double colon operator :

A

contracts numeric row array by specifying the starting value, increment value, and terminating value

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

myArray = [5:1:9]

A

5 6 7 8 9

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

descending order

A

negative increments

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

[]

A

delete element

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

length

A

function outputs length of array

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

concatenate

A

make two arrays into one by putting 2nd arrays elements at end of first’s

22
Q

column array

A

alterante 1-D array that’s vertical with one element per for ;

23
Q

;

A

separate rows of column

24
Q

transpose

A

turns rows into columns and vice versa

25
transpose operator
' after end of bracket
26
array operations
row operators are the same for columns
27
linear indexing
allows access to multiple elements simultaneously, uses integer array as index for another array
28
indexing array
integer array
29
indexed array
array being accessed
30
end
keyword for last element of 1-D array
31
string scalar
text places between ""
32
string array
array with text
33
" "
placeholder created by MatLab function strings
34
string(inputArray)
converts inputArray to string array
35
strength(input)
number of characters in each element of input string array
36
strings(n, m)
returns array of strings with no characters of certain size
37
character vector
series of characters in single quotes '
38
string vs char
string- sentences char- words
39
char(stringScalar)
converts string scalar into char vector
40
char(numericArray)
converts numeric array to char vector
41
UTF16
codes are always positive integers
42
element wise operator
performs operation on each corresponding pair of elements of two 1D arrays, making new array
43
compatible sizes
if for every dimension the dimension sizes of inputs are the same or if one of the dimension size is one, mtlab expands arrays with comp sizes during element wise operation
44
element wise addition
+ adds corresponding pairs of 2 row arrays
45
element wise subtraction
-
46
element wise multiplication
.*
47
element wise division
./
48
element wise exponent
.^
49
cross product
vector product, produces vector same size as input vectors
50
dot product
scalar product only btw row x row and column x column