
% 
% Jiri Jirat
% Prague Institute of Chemical Technology
% 

%
% matice - 1. sloupec naboj, dalsi sloupce prvky
%
a = [
-1,0,1,0,0;
-1,0,0,1,4;
0,2,0,0,1;
-1,0,1,0,3;
0,0,0,1,2;
-1,1,0,0,1]
hodnost = rank(a)  % hodnost matice = pocet nezavislych rovnic
b = a'             % transpozice matice
c = null(b)        % nalezeni baze nuloveho prostoru matice b
reseni = rref(c')  % upravy na "row reduced echelon form"
