source: liacs/la/opdr1/uitwerking.m@ 324

Last change on this file since 324 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 790 bytes
RevLine 
[2]1% Intructie matlab
2
3% 1-4) Equivalente commando's onder Mac OS X uitgevoerd
4
5% 5) Help functie weergeven
6help rowmultiple
7
8% 6) Test matrix maken
9A = [ 1, 2, 3;
10 4, 5, 6;
11 7, 8, 9; ];
12% 7)
13B = rowswap(A, 1, 3)
14B = rowcombine(A, 3, 2, 4)
15B = rowmultiple(A, 3, 0.5)
16
17% 8) maar er een spoormatrix van
18M = [ 3, 1, 5, 7;
19 2, 4, -1, 0;
20 5, 7, 3, 1; ];
21M1 = rowmultiple(M, 1, 2)
22M2 = rowmultiple(M1, 3, 2)
23M3 = rowswap(M2, 1, 2)
24M4 = rowcombine(M3, 2, 1, -3)
25M5 = rowcombine(M4, 3, 1, -5)
26M6 = rowcombine(M5, 3, 2, -0.6)
27M7 = rowmultiple(M6,3, 1/3.2)
28M8 = rowcombine(M7, 2, 3, -13)
29M9 = rowcombine(M8, 1, 3, 1)
30M10 = rowmultiple(M9, 2, -0.1)
31M11 = rowcombine(M10, 1, 2, -4)
32Mfinal = rowmultiple(M11, 1, .5)
33
34% 9)
35SpoorM = rref(M)
36
37% 10)
38% Ze komen overeen
39pause
40
41
42
43
Note: See TracBrowser for help on using the repository browser.