Kelvin's Octave Assignment: Difference between revisions
Jump to navigation
Jump to search
(Created page with '==Solve Linear System of EQ's with Octave== This will solve and print solutions for the equations: <math>x1+2*x2+3*x3=1</math> <math>4*x1+5*x2+6*x3=2</math> <math>7*x1+8*x2+9…') |
No edit summary |
||
Line 3: | Line 3: | ||
This will solve and print solutions for the equations: |
This will solve and print solutions for the equations: |
||
<math>x1+2 |
'''<math>x1+2 \times x2+3 \times x3=1</math>''' |
||
<math>4 |
'''<math>4 \times x1+5 \times x2+6 \times x3=2</math>''' |
||
<math>7 |
'''<math>7 \times x1+8 \times x2+9 \times x3=3</math>''' |
||
Revision as of 20:36, 3 October 2010
Solve Linear System of EQ's with Octave
This will solve and print solutions for the equations:
clear all close all A=[1,2,3 4,5,6 7,8,9]; b=[1 2 3]; result = A\b; x1=result(1) x2=result(2) x3=result(3)