% Intructie matlab

% 1-4) Equivalente commando's onder Mac OS X uitgevoerd

% 5) Help functie weergeven
help rowmultiple

% 6) Test matrix maken
A = [ 1, 2, 3;
      4, 5, 6;
      7, 8, 9; ];
% 7)
B = rowswap(A, 1, 3)
B = rowcombine(A, 3, 2, 4)
B = rowmultiple(A, 3, 0.5)

% 8) maar er een spoormatrix van
M = [  3,  1,  5,  7;
       2,  4, -1,  0;
       5,  7,  3,  1; ];
M1 = rowmultiple(M, 1, 2)
M2 = rowmultiple(M1, 3, 2)
M3 = rowswap(M2, 1, 2)
M4 = rowcombine(M3, 2, 1, -3)
M5 = rowcombine(M4, 3, 1, -5)
M6 = rowcombine(M5, 3, 2, -0.6)
M7 = rowmultiple(M6,3, 1/3.2)
M8 = rowcombine(M7, 2, 3, -13)
M9 = rowcombine(M8, 1, 3, 1)
M10 = rowmultiple(M9, 2, -0.1)
M11 = rowcombine(M10, 1, 2, -4)
Mfinal = rowmultiple(M11, 1, .5)

% 9)
SpoorM = rref(M)

% 10)
% Ze komen overeen
pause




