- #1
gnome
- 1,041
- 1
I'm just starting (way overdue really) to learn how to use matlab.
Suppose you have a system of linear equations for which this is the augmented matrix:
[tex]\begin{array}{cccc}1 &5 &-3 &-4\\ -1 &-4 &1 &3\\ -2 &-7 &0 &h \end{array}[/tex]
how would you find (using Matlab) the value(s) of h for which it's consistent?
Obviously this example is trivial to solve by hand, but suppose it were a much bigger matrix. Is there a way to set up a matrix with variables for one or several elements and solve for those variables? Or, just do a row reduction while keeping the variables in place so you would then be able to determine the consistent values by inspection? Or some other way?
Suppose you have a system of linear equations for which this is the augmented matrix:
[tex]\begin{array}{cccc}1 &5 &-3 &-4\\ -1 &-4 &1 &3\\ -2 &-7 &0 &h \end{array}[/tex]
how would you find (using Matlab) the value(s) of h for which it's consistent?
Obviously this example is trivial to solve by hand, but suppose it were a much bigger matrix. Is there a way to set up a matrix with variables for one or several elements and solve for those variables? Or, just do a row reduction while keeping the variables in place so you would then be able to determine the consistent values by inspection? Or some other way?