How can I triangular a matrix
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a n*n matrix. I want to change it to a triangular matrix. please help me.
1 commentaire
James Tursa
le 9 Mai 2022
Is your homework assignment to code up your own Gauss elimination scheme to get the upper triangular matrix?
Réponses (1)
Matt J
le 28 Oct 2012
There are commands TRIU and TRIL to convert a matrix to upper and lower triangular, if that's what you mean.
2 commentaires
Matt J
le 28 Oct 2012
Modifié(e) : Matt J
le 28 Oct 2012
- If you want to transform the matrix to upper triangular, then why is TRIU inappropriate?
- How will this transformation help in computing the determinant? Such a transformation would change the determinant.
- Why is n>=16 a big deal? MATLAB will do determinants pretty easily for n in the thousands
>> A=rand(3000); tic; det(A); toc
Elapsed time is 0.591271 seconds.
Voir également
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!