Question: In MatLab code OBJECTIVE: Use matrix math to solve a system of linear equations You should work on this task individually, but you may discuss
In MatLab code
OBJECTIVE: Use matrix math to solve a system of linear equations You should work on this task individually, but you may discuss results with your teammates. The system of linear equations 12*2 22*2 can be represented in matrix form as a121 111 a221 LX2llb l21 or, more succinctly, as The system has a solution if and only if A is invertible (det(A) 0, where det(A) = a, a22 a 2a21). If A is invertible, the system has the solution x = A-lb. This is obtained by left- multiplying both sides of the equation by the inverse of A. In MATLAB, this operation (left- multiply by inverse) is streamlined by the matrix left-divide operator (V) Write a script (task2.m) that prompts the user for the four a values and the two b values and outputs the solution to the corresponding system of linear equations, or prints an error message if no solution exist:s Example: >>task2 a11 = 8 a12 6 b1 = 3 a21 = 7 a22 = 5 b2 = 0 7.5000 10.5000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
