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

3 ビュー (過去 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 Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by