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 view (last 30 days)
Show older comments
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 Comments
Guillaume
on 28 Apr 2017
Note that +, -, *, <, >, ==, matrix indexing (subsref) and assignment (subsasgn) are all built-in functions.
John Chilleri
on 28 Apr 2017
Edited: John Chilleri
on 28 Apr 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!
Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!