Home /
Expert Answers /
Computer Science /
can-someone-help-me-with-this-will-give-it-a-thumbs-up-thanks-matlab-inverse-of-a-square-matrix-pa783
(Solved): Can someone help me with this? Will give it a thumbs up. thanks MATLAB: Inverse of a Square Matrix ...
Can someone help me with this? Will give it a thumbs up. thanks
MATLAB: Inverse of a Square Matrix \%In this activity you will find the inverse of a square matrix two ways, using an augmented matrix \%and using the inv() command. \%create the square matrix A. \%use the following to view values as rational numbers rather than decimals. format rat \%Create the augmetned matrix [A | I] using the apprpopriately sized identity matrix. AugA =[A eye (3)] \%use the rref() command to reduce the augmented matrix. [rowreducedAugA, pivotvarsAugA] = rref(AugA) \%Retrieve the inverse of matrix A from the reduced augmented matrix [I | Ainv]. The argument has \%two parts, one before the comma and one after the comma. The colon before the comma used with \%no additional values will capture all rows from rowreducedAugA. The colon after the comma includes \%the values of which columns are to be captured from the matrix rowreducedAugA. rowreducedAugA (:,4:6) \%use the inv() command to find the inverse of matrix A. inv(A) Use the following matrix for this activity. A=???121?01?1??1?50????