%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Module III: Column space & rank
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% NOTE: to see results in the Command Window, 
% simply delete the ";" at the end of a given command.

A1=[1 0 2;2 11 4;3 3 6;4 3 8];
rA1=rank(A1);

A2=[1 0 0;2 11 4;3 3 5;4 3 8];
rA2=rank(A2);

A3=[1 0 0;2 11 4];
rA3=rank(A3);

a1=ones(5,1);
a2=[1 2 3 4 5]';
a3=[11 2 4 0 6]';
a4=2*a2-0.5*a3;

A4=[a1 a2 a3 a4];
rA4=rank(A4);

A5=magic(6);
rA5=rank(A5);
dA5=det(A5); %det yields the determinant of a matrix

