필터 지우기
필터 지우기

how to change what is under the diagonals in a matrix into Zeros

조회 수: 2 (최근 30일)
Brian Nuttall
Brian Nuttall 2015년 3월 31일
답변: Matt J 2015년 3월 31일
how do i turn what is under the diagonal on a matrix into zeros. for example i cant figure out how to do the following.
[1 2 3,4 5 6,7 8 9]
into
[1 2 3,0 5 6,0 0 9]

답변 (1개)

Matt J
Matt J 2015년 3월 31일
See the TRIU command.

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by