chapter 5 Flashcards
matrix
rectangular array of items in rows or columns
interchangable with array
scalar
only store single item
array element
each item in array
vector
array with one dimension
numeric array
array with numbers
homogenous array
array with elements of same class type
inhomogeneous array
elements of different class types
row array
1D array with 1 row and n columns
brackets
write row’s elements, aka array construction operator
size of array
given as rows x columns
paranthesis
used to access individual element (index)
indexing the array
process of accessing arrays elements with an index
first index is
1
arithmetic operation with a scalar
array operation that applies arithmetic with scalar to each element in array
ex: myArray-10
subtracts 10 from each element in array
circshift(Array, #)
shifts over by # spaces
double colon operator :
contracts numeric row array by specifying the starting value, increment value, and terminating value
myArray = [5:1:9]
5 6 7 8 9
descending order
negative increments
[]
delete element
length
function outputs length of array