source:
liacs/la/opdr5/cramer.m@
126
Last change on this file since 126 was 2, checked in by , 15 years ago | |
---|---|
File size: 215 bytes |
Line | |
---|---|
1 | function result = cramer(A,b) |
2 | % Solve using cramer formula |
3 | |
4 | % determinant only need to be calculated ones |
5 | detA = det(A); |
6 | for i=1:size(A,1) |
7 | result(i,1) = det(cramermatrix(A,i,b)) / detA; |
8 | end |
9 |
Note:
See TracBrowser
for help on using the repository browser.