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

Last change on this file since 171 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
RevLine 
[2]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.