Script Save Screate the coefficient matrix. store the coefficient matrix in A. A [-2 1 2; 1 3 2; 3-1 13 % need help here I don't think I have this right Reset 4Screate the column matrix of constants. store the colum matrix of constants in b. b- [0; -4; 3] MATLAB Documentation 7 use the inv() command to find the inverse of the matrix A. Store the inverse matrix in inv. A inv(A) Find the solution to the linear system of equations using the inverse matrix, if the inverse matrix exists. If the inverse matrix exists, store the solution to the linear system of equations in x. 12x in D 13 14 Before submitting your solution, consider repeating the work above with the coefficient matrix A = [-212; 13 15

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need help on line 2, I don't think I have the matrix defined right

←
D2L
zy
+
E
https://learn.zybooks.com/zybook/MAT-350-J6466-OL-TRAD-UG.22EW6/chapter/2/section/8
D2L Login Southern N...
The Chop Shop | Bu...
Type here to search
SNHU Bookstore
=zyBooks My library > MAT 350: Linear Algebra home > 2.8: MATLAB: Solve Systems of Linear Equations Revisited
MATLAB: Solve Systems of Linear Equations Revisited
In this activity you will use the inv() command to find the inverse of an invertible square matrix and use it to solve a system of linear
equations.
Consider the linear system of equations:
2x+y=4
x+2y=5
zy Section 2.8 - MAT 350: Linear Algebra
%Create the coefficient matrix C.
C = [2 1; 1 2]
%Create the column matrix d of constants. Remember, to create a column matrix, the rows are separated
%by semicolons.
d = [4; 5]
Use the inv() command to find the inverse of the matrix C.
invc = inv(C)
%The solution to the linear system of equations is the inverse matrix times the column matrix of
%constants, provided the inverse of the square matrix C exists.
x = invc*d
Utilize the following linear system of equations for this activity.
-2x1 + x2+2x3 = 0
x1 +3x₂+2x3 = -4
3x1-x2 + x3 = 3
Before submitting your solution, consider repeating the work above with the coefficient matrix A = [-212; 132; -14 4]. Do you run into
any difficulties or errors when finding the solution? Explain what is happening as a comment in your code.
Script
1 %Create the coefficient matrix. store the coefficient matrix in A.
2 A = [-2 1 2; 1 3 2; 3 -1 1] % need help here I don't think I have this right
4 %Create the column matrix of constants. Store the column matrix of constants in b.
b = [0; -4; 3]
7 %Use the inv() command to find the inverse of the matrix A. store the inverse matrix in invA.
8 invA inv(A)
16
Save C Reset
10 %Find the solution to the linear system of equations using the inverse matrix, if the inverse matrix
11 %exists. If the inverse matrix exists, store the solution to the linear system of equations in x.
12 x = invA* b
4
14 %Before submitting your solution, consider repeating the work above with the coefficient matrix A = [-2 1 2; 1 3
רו
MATLAB Documentation
EPIC
GAMES
O
1031
น
EzyBooks catalog
I
Bo
Help/FAQ
X
:
Other favorites
11:27 PM
7/14/2022
Michael Pagano
Transcribed Image Text:← D2L zy + E https://learn.zybooks.com/zybook/MAT-350-J6466-OL-TRAD-UG.22EW6/chapter/2/section/8 D2L Login Southern N... The Chop Shop | Bu... Type here to search SNHU Bookstore =zyBooks My library > MAT 350: Linear Algebra home > 2.8: MATLAB: Solve Systems of Linear Equations Revisited MATLAB: Solve Systems of Linear Equations Revisited In this activity you will use the inv() command to find the inverse of an invertible square matrix and use it to solve a system of linear equations. Consider the linear system of equations: 2x+y=4 x+2y=5 zy Section 2.8 - MAT 350: Linear Algebra %Create the coefficient matrix C. C = [2 1; 1 2] %Create the column matrix d of constants. Remember, to create a column matrix, the rows are separated %by semicolons. d = [4; 5] Use the inv() command to find the inverse of the matrix C. invc = inv(C) %The solution to the linear system of equations is the inverse matrix times the column matrix of %constants, provided the inverse of the square matrix C exists. x = invc*d Utilize the following linear system of equations for this activity. -2x1 + x2+2x3 = 0 x1 +3x₂+2x3 = -4 3x1-x2 + x3 = 3 Before submitting your solution, consider repeating the work above with the coefficient matrix A = [-212; 132; -14 4]. Do you run into any difficulties or errors when finding the solution? Explain what is happening as a comment in your code. Script 1 %Create the coefficient matrix. store the coefficient matrix in A. 2 A = [-2 1 2; 1 3 2; 3 -1 1] % need help here I don't think I have this right 4 %Create the column matrix of constants. Store the column matrix of constants in b. b = [0; -4; 3] 7 %Use the inv() command to find the inverse of the matrix A. store the inverse matrix in invA. 8 invA inv(A) 16 Save C Reset 10 %Find the solution to the linear system of equations using the inverse matrix, if the inverse matrix 11 %exists. If the inverse matrix exists, store the solution to the linear system of equations in x. 12 x = invA* b 4 14 %Before submitting your solution, consider repeating the work above with the coefficient matrix A = [-2 1 2; 1 3 רו MATLAB Documentation EPIC GAMES O 1031 น EzyBooks catalog I Bo Help/FAQ X : Other favorites 11:27 PM 7/14/2022 Michael Pagano
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Matrix multiplication
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education