Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**After completing Row Reduction Algorithm on the matrix A, output your final matrix as R (do not display it here). **Next, verify that R is,

image text in transcribed
image text in transcribed
**After completing Row Reduction Algorithm on the matrix A, output your final matrix as R (do not display it here). **Next, verify that R is, indeed, the reduced echelon form of A. Proceed as follows: Output (without displaying) the reduced echelon form of A calculated by the MATLAB function: r=rref(A); Use a conditional statement with the function closetozeroroundoff (R-r , 7) to verify that the matrices R and r match within the given precision. If your code confirms it, display R with a message: disp( ' the reduced echelon form of A is' ) R Otherwise, output a message similar to the one below: disp( ' something went wrong! ' ) and re-assign (and display): R= Receiving the last message and the empty output for R should prompt you to make corrections in your code. Hint: Suggested MATLAB functions for this exercise: max(), abs(), any(). This is the end of the function rredf . **Print the functions rredf and closetozeroroundoff in your Live Script. **Run the function rredf on the matrices as indicated below: $ (a) A=[2 1 1;1 2 3;1 1 1] R=rredf (A) ; $ (b) A=[zeros (3,2) , randi (10,3,3) ] R=rredf (A) ; (c) A=magic (4) R=rredf (A) ; $ (d) A=magic (5) R=rredf (A) ; $(e) A=ones (3) R=rredf (A) ; $ (f ) A=rand (3, 4) R=rredf (A) ; $(g) A=randi ( 10,5,3) ; A=[A, A(: ,3) ] R=rredf (A) ; $ (h) A=[magic (4) , hilb (4) ] R=rredf (A)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Modern Advanced Accounting In Canada

Authors: Hilton Murray, Herauf Darrell

7th Edition

1259066487, 978-1259066481

Students also viewed these General Management questions