% matrix operations 

format short g; echo on;

% products of vectors
v = [1:4]
v*v'
v'*v
v.*v
v.^v
pause;

% Hilbert matrix
A = ones(4,1) * v 
B = A + A' - 1
rats(1 ./ B)

% more products
v*B*v' 
A.*A*v'



echo off; format; 
