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 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Guillaume
2017 年 4 月 28 日
Note that +, -, *, <, >, ==, matrix indexing (subsref) and assignment (subsasgn) are all built-in functions.
John Chilleri
2017 年 4 月 28 日
編集済み: John Chilleri
2017 年 4 月 28 日
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!
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!