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 CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by