chapter 5 Flashcards

You may prefer our related Brainscape-certified flashcards:
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
Q

transpose operator

A


after end of bracket

26
Q

array operations

A

row operators are the same for columns

27
Q

linear indexing

A

allows access to multiple elements simultaneously, uses integer array as index for another array

28
Q

indexing array

A

integer array

29
Q

indexed array

A

array being accessed

30
Q

end

A

keyword for last element of 1-D array

31
Q

string scalar

A

text places between “”

32
Q

string array

A

array with text

33
Q

” “

A

placeholder created by MatLab function strings

34
Q

string(inputArray)

A

converts inputArray to string array

35
Q

strength(input)

A

number of characters in each element of input string array

36
Q

strings(n, m)

A

returns array of strings with no characters of certain size

37
Q

character vector

A

series of characters in single quotes ‘

38
Q

string vs char

A

string- sentences
char- words

39
Q

char(stringScalar)

A

converts string scalar into char vector

40
Q

char(numericArray)

A

converts numeric array to char vector

41
Q

UTF16

A

codes are always positive integers

42
Q

element wise operator

A

performs operation on each corresponding pair of elements of two 1D arrays, making new array

43
Q

compatible sizes

A

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
Q

element wise addition

A

+
adds corresponding pairs of 2 row arrays

45
Q

element wise subtraction

A

-

46
Q

element wise multiplication

A

.*

47
Q

element wise division

A

./

48
Q

element wise exponent

A

.^

49
Q

cross product

A

vector product, produces vector same size as input vectors

50
Q

dot product

A

scalar product
only btw row x row and column x column