How can I make my own function to transform a NxN+1 matrix of any size to row echelon form without any built in functions??

1 vue (au cours des 30 derniers jours)
Please help!
I have a matrix of any size and I need to turn it into row echelon form without using any built in functions how can I do this. I can figure it out for one given matrix but not any matrix inputted. I also need to create another function that will solve the matrix thats in row echelon form to make x_1=?...X_n. Can someone help please??
  2 commentaires
Guillaume
Guillaume le 28 Avr 2017
Note that +, -, *, <, >, ==, matrix indexing (subsref) and assignment (subsasgn) are all built-in functions.
John Chilleri
John Chilleri le 28 Avr 2017
Modifié(e) : John Chilleri le 28 Avr 2017
I think Christopher means without using rref or any similar function (at least I hope so!).
I would suggest you read up on Gaussian elimination and find an algorithm that you can implement piece by piece.
Note: the Wikipedia page on Gaussian elimination has pseudocode that you may find helpful (many places probably have pseudocode).
Good luck!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by