% matrix functions 

format short; echo on; 

% vectors and matrices
A = [3 2; 1 0]
b = A(:,1) 
pause; 

% linear systems 
x = A\b
inv(A)
[det(A), rank(A), trace(A)]
pause;

% eigenvalues 
[V, D] = eig(A)
A*V - V*D 
pause; 

% decompositions 
[Q, R] = qr(A)
[L, U] = lu(A)
pause; 

echo off; format;

