subject
Computers and Technology, 18.03.2021 01:20 andr8aa

MATLAB: Augmented Matrices In this activity you will define an augmented matrix, find the number of pivot variables in the reduced system, and find the number of free variables in the solution to the linear system of equations.
Consider the linear system of equations:
2x + y = 3
x + 2y = 5
%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 = [3; 5]
%Create the augmented matrix [C I d]. Store this augmented matrix in Cd.
Cd = [Cd]
%Use the rref() command to reduce the augmented matrix. Store the reduced matrix in rowreducedCd, and %store the pivot variables in pivotvarsCd.
[rowreducedCd, pivotvarsCd] = rref(Cd)
%Warning: Look carefully at the reduced augmented matrix. If one of the pivot columns is the rightmost %column, the system of linear equation has no solution and no further analysis is possible.
%Do you run into any difficulties? Explain what is happening as a comment in your code.
%Use the size command to find the number of variables in the system of linear equations. Store this numbe %in numvars.
[numeqns, numvars] = size(C)
Store this number in numpivotvars.
%Use the size command to find the number of pivot variables.
[numrows, numpivotvars] = size(pivotvarsCd)
%Use subtraction to find the number of free variables in the solution to the system of linear equations.
%Store this number in numfreevars.
numfreevars = numvars - numpivotvars
Utilize the following linear system of equations for this activity.
X1 + 3x2 - 2x3 + 2xy = 0
2x1 + 6x2 - 5x3 - 2x4 + 4x3 - 3x6 = -1
x3 + 5x4 + 3x6 = 1
x1 + 3x2 + 4x4 + 2x5 + 9x6 = 3
Script
1 %Create the coefficient matrix A.
2
3 %Create the column matrix b of constants. Remember, to create a column matrix, the rows are separated
4 %by semicolons.
5
6 %Create the augmented matrix (A bl. Store this augmented matrix in Ab.
7
8 %Use the rref() command to reduce the augmented matrix. Store the reduced matrix in rowreducedAb, and
9 %store the pivot variables in pivotvarsAb.
10
11 %Warning: Look carefully at the reduced augmented matrix. If one of the pivot columns is the rightmos
12 %column, the system of linear equation has no solution and no further analysis is possible.
13
14 %Do you run into any difficulties? Explain what is happening as a comment in your code.
15
16 %Use the size command to find the number of variables in the system of linear equations. Store this nur
17 %in numvars.
18
19 %Use the size command to find the number of pivot variables. Store this number in numpivotvars.
20
21 %Use subtraction to find the number of free variables in the solution to the system of linear equations
22 %Store this number in numfreevars.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
MATLAB: Augmented Matrices In this activity you will define an augmented matrix, find the number of...
Questions
question
Mathematics, 01.12.2020 02:00
question
English, 01.12.2020 02:00
question
Mathematics, 01.12.2020 02:00
question
Mathematics, 01.12.2020 02:00
question
Mathematics, 01.12.2020 02:00
question
Mathematics, 01.12.2020 02:00
question
Engineering, 01.12.2020 02:00
question
Mathematics, 01.12.2020 02:00
Questions on the website: 13722363