Question: Programming Language : Matlab Matrix Methods Consider the 3 system below 2x1 - 2.x3 One can solve using substitution or elimination methods, however we will

Programming Language : Matlab

Programming Language : Matlab Matrix Methods Consider the 3 system below 2x1

- 2.x3 One can solve using substitution or elimination methods, however we

Matrix Methods Consider the 3 system below 2x1 - 2.x3 One can solve using substitution or elimination methods, however we will use matrix meth- ods. First we write the coefficients (the numbers) in front of our unknowns inside a matrix in Matlab (hit Enter after you type this in the command window to see the matrix A): >>A[2 2 2; 20 -2; 1 -1 1] Then let's enter the right hand side in a similar way: >>b[0; 2; 6] b for the vector of unknowns In Matlab the most efficient way to solve the problem Ax x [zi, z2i z3] is via the "backslash" command: This is equivalent to the inverse method xAb: >>xinv-inv(A)*b Compare your results and enter your answer here (write x as a column vector)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!