Question

Given the equations write a Matlab Function File (code) for 10x1 + 2x2 - x3 =...

Given the equations write a Matlab Function File (code) for

10x1 + 2x2 - x3 = 27

-3x1 -5x2 +2x3 = -61.5

x1 +x2 +6x3 = -21.5

(A) Compute the determinant

(B) Use Cramer's rule to solve for the x's

(C) Solve by naive Gauss elimination. Show all steps of the computation.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

soli- Givm d eauadtons ave clear; cl.c Joxmat compact Read 3( Pnput guave matrix -3-G2 eaaoa eval- ones Cn, )) check tp the mif check (1) minan The matrix fs n *- i , v. Save cuvvedl values o alalale ex lalea YYe 400m he set φ values. enend ỵỵ Display yes let& Gauss Seidel Table> [12 다eedion:X solutonT ,

Add a comment
Know the answer?
Add Answer to:
Given the equations write a Matlab Function File (code) for 10x1 + 2x2 - x3 =...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need to use matlab to solve this 9.8 Given the equations 10xi 2x2-x3-27 -3X1-6x2 +...

    I need to use matlab to solve this 9.8 Given the equations 10xi 2x2-x3-27 -3X1-6x2 + 2x,--61.5 x1 + x2 + 5x3ーー21.5 (a) Solve by naive Gauss elimination. Show all steps of the com- putation. (b) Substitute your results into the original equations to check your answers.

  • DO NOT GIVE ME A STEP BY STEP SOLUTION ON PAPER. JUST GIVE ME THE MATLAB FUNCTION FILE (code) TO...

    DO NOT GIVE ME A STEP BY STEP SOLUTION ON PAPER. JUST GIVE ME THE MATLAB FUNCTION FILE (code) TO BE USED IN MATLAB. ONLY (a) use the Gauss-Seidel method to solve the following system until the percent relative error falls below s a. 5%. 10x1 + 2x2-x,-27 3x1 -6x2 + 2x3 61.5 25x321.5 b. (b) write an M-file to implement the Gauss-Seidel method using the above system as a test case (a) use the Gauss-Seidel method to solve the...

  • Solve the system of linear equations using the Gauss-Jordan elimination method. 3x1 2x2X316 x1 + 2x2...

    Solve the system of linear equations using the Gauss-Jordan elimination method. 3x1 2x2X316 x1 + 2x2 + 2x3 = 12 (X1, X2, X3) =

  • (a) use the Gauss-Seidel method to solve the following system until the percent relative error fa...

    In matlab, what is the code for the problem. (a) use the Gauss-Seidel method to solve the following system until the percent relative error falls below s a. 5%. 10x1 + 2x2-x,-27 3x1 -6x2 + 2x3 61.5 25x321.5 b. (b) write an M-file to implement the Gauss-Seidel method using the above system as a test case (a) use the Gauss-Seidel method to solve the following system until the percent relative error falls below s a. 5%. 10x1 + 2x2-x,-27 3x1...

  • 4.3.67 Solve using Gauss-Jordan elimination. x1 - x2 + x3 = -0.9 -2x1 +5x2 + 5x3 + 4x4 = 2.1

    4.3.67Solve using Gauss-Jordan elimination. x1 - x2 + x3 = -0.9 -2x1 +5x2 + 5x3 + 4x4 = 2.1 3x1 + 6x3 + 7x4 = - 4.7 4x1 – 3x2 + 2x3 + 6x4 = -6.7 Select the correct choice below and fill in the answer box(es) within your choice. 4.3.47Solve using Gauss-Jordan elimination 3x1 + 3x2 - 7x3 = - 15 4x1 + 18x2 - 43x3 = - 23 x1 + 3x2 - 7x3 = -5 Select the correct choice below and fill in the answer box(es) within your...

  • Write a program in Matlab that solves linear systems of equations using Gauss elimination with pa...

    Write a program in Matlab that solves linear systems of equations using Gauss elimination with partial pivoting. Make sure that you use variables that are explicit, and make sure to include comment lines (each subroutine should have at least a sentence stating what it does). Make sure that your program checks for valid inputs in matrix and vectors dimensionality. • Using your code, solve the systems of equations in problems 9.11, 9.12, and 9.13 9.11 9.12 9.13 2x1-6x2-X3 =-38 We...

  • 1. 3x1 - 2x2 + x3   = -10     2x1 + 6x2 - 4x3 = 44...

    1. 3x1 - 2x2 + x3   = -10     2x1 + 6x2 - 4x3 = 44     -x1 – 2x2 + 5x3 = -26 a. Solve the set of equations above with Gauss elimination. b. Solve the set of equations above with Gauss-Jordan method.

  • Use the Gaussian elimination method to solve each of the following systems of linear equations. In...

    Use the Gaussian elimination method to solve each of the following systems of linear equations. In each case, indicate whether the system is consistent or inconsistent. Give the complete solution set, and if the solution set is infinite, specify three particular solutions. 1-5x1 – 2x2 + 2x3 = 14 *(a) 3x1 + x2 – x3 = -8 2x1 + 2x2 – x3 = -3 3x1 – 3x2 – 2x3 = (b) -6x1 + 4x2 + 3x3 = -38 1-2x1 +...

  • PREGUNTA 1 Simplest method to solve a system of linear lgebic equations O Graphical Method Cramer's...

    PREGUNTA 1 Simplest method to solve a system of linear lgebic equations O Graphical Method Cramer's Rule Method The Elimination of Unkmowns Method None of Above PREGUNTA 2 The NAVIE-GAUSS Elimination Method has to phases: Backward elimination and Forward substitution o Falso PREGUNTA 3 One technique to improve the solution of a linear algebraic equation system is PIVOTING o Falso PREGUNTA 4 GAUSS-JORDAN is a method to solve a system of linear algebraic equations o Falso PREGUNTA 5 Solve the...

  • Could someone explain these four promblems on matlab and if you do, could you write what...

    Could someone explain these four promblems on matlab and if you do, could you write what you wrote on matlab I.e. on the command window or script. Also if you have written anything by hand can you write neatly. Also an explain of how you did it would be greatly appreciated. 1] 5 points) Write the following set of equations in Matrix form and use Matlab to find the solution. 50 -5x3-6x2 2x2 + 7x3-30 x1-7x3-50-3x2 + 5x1 [2] (10...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT