source: liacs/la/opdr5/cramer.m@ 144

Last change on this file since 144 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: 215 bytes
Line 
1function 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.