Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The three elementary row operations can be performed in MATLAB using the following commands Type I: A ( [ i , j ] , :

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(i,:)=**A(i,:) multiplies row i by a
Type III: A(i,:)=A(i,:)+**A(j,:) multiplies row j by and adds it to row i
The matrix A below has been created for you.
A=[53-9-10-7015814]
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.
Don't forget to include your name as a comment in your scrip
Resets the solution code to the
starter code provided by the
instructor. Changes you have
made are discarded.
Script 2
format rat
A=[5,3,-9;-10,-7,0;15,8,14]
% YOUR NAME
% divide the first row by the appropriate scalar so that the pivot is a one
A_new1= A;
% zero out the entry in position (2,1) by performing a single row operation
A_new 2=A;
% zero out the entry in position (3,1) by performing a single row operation
A_new 3=A;
% zero out the entry in position (3,2) by performing a single row operation
A_new4=A;
% make the pivot in row 2 a one by performing a single row operation
A_new5=A;
% make the pivot in row 3 a one by performing a single row operation
R=A%the final result is stored in the matrix R
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions