chapter 6 Flashcards
(19 cards)
add outside of range
use indexing to assign values to elements out of range, the gaps in between are filled with zeros
add outside of range example
electricBills(4) = 60
empty array operator
[ ], can delete elements or make an empty array
length()
outputs length of an array
true or false, the following statements are equal
xNew = [ ]
xNew = 0
clear xNew
false
concatenate
makes two arrays into one by adding on to eat send of another
concatenate example
arrayNew = [array1, array2]
end
keyword for last element in array
string scalar
text placed between “ “, singular phrase
string array
array of text, composed of multiple elements
” “
empty placeholder for text
string(inputArray)
converts inputArray to a string array
strlength(input)
returns number of characters in each element of input
strings(n,m)
returns array of strings with no character of specified size
test(:, #)
extracts specific column, flip for row
character vector
series of characters in ‘ ‘
char(input)
converts input (string scalar or numeric array) into a character vector
scalar size
read as 1 x 1
nthRoot([array], 5)
takes the fifth root of each element in array