Azzera filtri
Azzera filtri

Reduce matrix to row echelon

5 visualizzazioni (ultimi 30 giorni)
Dinh Le Dung
Dinh Le Dung il 10 Giu 2022
Risposto: Sourav Sukumaran il 3 Lug 2022
I want to reduce a matrix contain variable m to echelon form or reduced row echelon form :
A = [1,2;3,m] i.e
The answer should be [1,2; 0, (m-6)]
I try rref(A) in matlab but it reduce without variable m
Thanks for your help!!!
  1 Commento
Abhijeet
Abhijeet il 17 Giu 2022
Modificato: Abhijeet il 17 Giu 2022
I understand that you want to calculate the reduced row echelon form of an input matrix which consist of unassigned variables. I assume that “rref” method returned an error, when you passed your matrix.
MATLAB provides “rref” method to calculate reduced row echelon form of any matrix that has numeric entries. If we use a variable that is not assigned to a numeric value in the input matrix, MATLAB will throw an error, Unrecognized function or variable”. Hence, we cannot calculate reduced row echelon form a matrix which has a variable that is not assigned a value.
For more information, kindly follow the documentation link provided below:

Accedi per commentare.

Risposte (1)

Sourav Sukumaran
Sourav Sukumaran il 3 Lug 2022
Hi
Try declaring m as a symbolic variable and applying rref again. Please also refer to row echelon documentation.

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by