chapter 6 Flashcards

1
Q

add outside of range

A

use indexing to assign values to elements out of range, the gaps in between are filled with zeros

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

add outside of range example

A

electricBills(4) = 60

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

empty array operator

A

[ ], can delete elements or make an empty array

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

length()

A

outputs length of an array

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

true or false, the following statements are equal
xNew = [ ]
xNew = 0
clear xNew

A

false

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

concatenate

A

makes two arrays into one by adding on to eat send of another

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

concatenate example

A

arrayNew = [array1, array2]

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

end

A

keyword for last element in array

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

string scalar

A

text placed between “ “, singular phrase

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

string array

A

array of text, composed of multiple elements

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

” “

A

empty placeholder for text

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

string(inputArray)

A

converts inputArray to a string array

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

strlength(input)

A

returns number of characters in each element of input

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

strings(n,m)

A

returns array of strings with no character of specified size

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

test(:, #)

A

extracts specific column, flip for row

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

character vector

A

series of characters in ‘ ‘

17
Q

char(input)

A

converts input (string scalar or numeric array) into a character vector

18
Q

scalar size

A

read as 1 x 1

19
Q

nthRoot([array], 5)

A

takes the fifth root of each element in array