
#1
May2905, 01:54 PM

P: 55

Hi all, I'm trying to write an mfile which will compute a solution matrix given a coefficient matrix and right hand side vector using cramer's rule.. which is no problem for a specified size matrix.. but is it possible to write an mfile which computes the solution when ANY square coefficient matrix and it's right hand side vector is entered?
I guess you would need some kind of loop... but i'm not sure how to write the code to have matlab substitute the right hand side vector for a different column in the coefficient matrix for each term... any suggestions? 



#2
Oct709, 06:32 PM

P: 6

I am curious about how to do this also...
some ideas would be really helpful. 



#4
Oct809, 06:10 AM

P: 341

Using MATLAB to implement Cramer's Rule
here is a row/column selector the rest is looping and det function. r and c is the number of row/column that you cancel of the matrix A, Ac is the result that you get.



Register to reply 
Related Discussions  
Cramer's Rule  General Math  2  
Cramer's Rule  Differential Equations  1  
Help with Cramer's rule  Calculus & Beyond Homework  3  
limitations of cramer's rule  Precalculus Mathematics Homework  5  
Cramer's rule  Introductory Physics Homework  3 