Solving Linear Equations Flashcards
(5 cards)
1
Q
How to solve Ax = b using inverse of the matrix?
A
x = inv(A) * b’
This is just for square matrices that are invertible.
2
Q
General and more efficient way to solve systems of linear equations in matlab?
A
If we have: Ax = b
We can solve it by using:
x = A\b
3
Q
How do we get the determinant of a matrix?
A
det (A)
4
Q
How do we get the eigenvalues and eigenvectors of a matrix?
A
Only Eigenvalues = eig(A)
Eigenvectors and diagonal matrix:
[V, D] = eig(A)
5
Q
How do we get the norm of a vector or matrix?
A
Using the norm command:
norm(x) or norm(A)