How can I triangular a matrix

3 ビュー (過去 30 日間)
Amir Ehsani
Amir Ehsani 2012 年 10 月 28 日
コメント済み: James Tursa 2022 年 5 月 9 日
I have a n*n matrix. I want to change it to a triangular matrix. please help me.
  1 件のコメント
James Tursa
James Tursa 2022 年 5 月 9 日
Is your homework assignment to code up your own Gauss elimination scheme to get the upper triangular matrix?

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2012 年 10 月 28 日
There are commands TRIU and TRIL to convert a matrix to upper and lower triangular, if that's what you mean.
  2 件のコメント
Amir Ehsani
Amir Ehsani 2012 年 10 月 28 日
Thanks. But actually I want transform a n*n matrix to upper triangular matrix to calculate the determinant. I have a big problem with n*n matrix determinant.n>=16
Matt J
Matt J 2012 年 10 月 28 日
編集済み: Matt J 2012 年 10 月 28 日
  1. If you want to transform the matrix to upper triangular, then why is TRIU inappropriate?
  2. How will this transformation help in computing the determinant? Such a transformation would change the determinant.
  3. 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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by