Homework 4 Flashcards
(6 cards)
1
Q
sum()
A
finds sum of formula or all values in matrix
2
Q
max()
A
finds the max value in the data provided
3
Q
min()
A
finds the min value in the data provided
4
Q
find()=[x,y]
A
finds whatever value inputted and returns the [x,y] coordinates of that data
5
Q
sort(matrix, [ascend or descend])
A
sorts matrices in ascending or descending order
6
Q
Linear equation(A^-1 * b=x)
A
[rows, cols] = size(data)
A = data(:,cols-1)
b = data(:, last col)
inv(A)*b=solution
(if det(A)=0 - it is not solveable)