- #1
.....
- 55
- 0
Hi all, I'm trying to write an m-file 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 m-file 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 co-efficient matrix for each term...
any suggestions?
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 co-efficient matrix for each term...
any suggestions?