How to solve the pivoting matrix for row reduction?

Suppose A is singular and B is the row echelon form for A, we have a pivoting matrix M such that M*A=B, is there an easy command to find M? Thanks!

Answers (1)

Given a singular matrix (A) and its row echelon form (B), pivoting matrix (M) can be computed by right matrix division,
ie, M = A/B.
If the echelon matrix is not given, you can use "rref" function to compute the reduced echelon form of the matrix.Since reduced echelon form is also an echelon form it can be used to compute the pivoting matrix.
Refer this document to know more about "rref" function.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Asked:

on 24 Nov 2021

Answered:

on 26 Jan 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!