Ders 3
Ders 3
logspace()
› D = B'; Matrix transpose
› e = c'; Vector transpose (row->column)
› D = B+2; Add two 5-by-5 matrices
› D = B-2; Subtract two 5-by-5 matrices
› D = B*2; Multiply two 5-by-5 matrices
› x = B\e; Solve linear equation B*x=e
› e = c.^2; Square each element in vector c
› D = B.*I; Element wise matrix multiplication
› D = I./B; Element wise matrix division
Dimensions of the matrices and vectors are
still important!!
Array multiplication .*
Array division ./
Array exponentiation .^
convert to radians.