What is wrong with the code ?
Show older comments
i've got the base equations on the first 3 rows and the gauss-seidel on the last 3 rows , i tried writing a code that's like this ... and i get an error message

x1 + 5x2 - 6x3 = 5
3x1 + x2 + 5x3 = 23
x1 + 4x2 + x3 = 7

x1=(23-x2-5*x3)/3
x2=(7-x1-x3)/4
x3=(x1+5*x2-5)/6
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!