Solve the following system of equations using LU factorization with partial pivoting:
2x1 − 6x2 − x3 = −38
−3x1 − x2 + 7x3 = −34
−8x1 + x2 − 2x3 = −40
I would like to write a matlab code to solve the problem without using loops or if statements. All i want is a code to swap the rows. I can solve the rest. Thank you in advance.
Get Answers For Free
Most questions answered within 1 hours.