The three elementary row operations can be performed in MATLAB using the following commands Type I: A([i,j], :)=A([j,i],:) interchanges row i and row j Type II: A(1,:)=a*A(1,:) multiplies row i by a Type III: A(i, :)=A(i, :)+a*A(j, :) multiplies row j by a and adds it to row i The matrix A below has been created for you. 3 -9 5 A=-10 -7 0 15 8 14] Perform row operations in MATLAB that reduce the matrix A to Row Echelon Form. The row operations are indicated for you in the learner template. Make sure you follow the instructions and perform only the row operation indicated in the comments. After each row operation, the result is stored in a new matrix in order for MATLAB to verify the accuracy of the intermediate steps. You might want to click on "Run Script" at each row operations to check that your steps are correct and to determine the next step in the row reduction. NOTE: in format rat, a number very close to zero, but not exactly zero due to round off error is denoted by *. If you see in the output of your calculations, you should treat it as zero.

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
MatLab
The three elementary row operations can be performed in MATLAB using the following commands
Type I: A([i,j], :)=A([j,i],:) interchanges row i and row j
Type II: A(1,:)=a*A(1,:) multiplies row i by a
Type III: A(i, :)=A(i, :)+a*A(j, :) multiplies row j by a and adds it to row i
The matrix A below has been created for you.
5 3 -9
A=-10 -7 0
15 8 14]
Perform row operations in MATLAB that reduce the matrix A to Row Echelon Form.
The row operations are indicated for you in the learner template. Make sure you follow the instructions and perform only the row operation indicated in the
comments. After each row operation, the result is stored in a new matrix in order for MATLAB to verify the accuracy of the intermediate steps.
You might want to click on "Run Script" at each row operations to check that your steps are correct and to determine the next step in the row reduction.
NOTE: in format rat, a number very close to zero, but not exactly zero due to round off error is denoted by *. If you see in the output of your calculations, you
should treat it as zero.
Transcribed Image Text:The three elementary row operations can be performed in MATLAB using the following commands Type I: A([i,j], :)=A([j,i],:) interchanges row i and row j Type II: A(1,:)=a*A(1,:) multiplies row i by a Type III: A(i, :)=A(i, :)+a*A(j, :) multiplies row j by a and adds it to row i The matrix A below has been created for you. 5 3 -9 A=-10 -7 0 15 8 14] Perform row operations in MATLAB that reduce the matrix A to Row Echelon Form. The row operations are indicated for you in the learner template. Make sure you follow the instructions and perform only the row operation indicated in the comments. After each row operation, the result is stored in a new matrix in order for MATLAB to verify the accuracy of the intermediate steps. You might want to click on "Run Script" at each row operations to check that your steps are correct and to determine the next step in the row reduction. NOTE: in format rat, a number very close to zero, but not exactly zero due to round off error is denoted by *. If you see in the output of your calculations, you should treat it as zero.
1 format rat
2 A = [5,3,-9; -10, -7,0; 15,8,14]
3 %
4% divide the first row by the appropriate scalar so that the pivot is a one
5
6 A_new1 = A;
7% zero out the entry in position (2,1) by performing a single row operation.
8
9 A_new2 =A;
10% zero out the entry in position (3,1) by performing a single row operation
11
12 A_new3=A;
13 % zero out the entry in position (3,2) by performing a single row operation
14
15 A_new4=A;
16 % make the pivot in row 2 a one by performing a single row operation
17
18 A_new5=A;
19 % make the pivot in row 3 a one by performing a single row operation
20
21 R = A %the final result is stored in the matrix R
22
Transcribed Image Text:1 format rat 2 A = [5,3,-9; -10, -7,0; 15,8,14] 3 % 4% divide the first row by the appropriate scalar so that the pivot is a one 5 6 A_new1 = A; 7% zero out the entry in position (2,1) by performing a single row operation. 8 9 A_new2 =A; 10% zero out the entry in position (3,1) by performing a single row operation 11 12 A_new3=A; 13 % zero out the entry in position (3,2) by performing a single row operation 14 15 A_new4=A; 16 % make the pivot in row 2 a one by performing a single row operation 17 18 A_new5=A; 19 % make the pivot in row 3 a one by performing a single row operation 20 21 R = A %the final result is stored in the matrix R 22
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Binary numbers
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.
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