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

3 vues (au cours des 30 derniers jours)
Brian Nuttall
Brian Nuttall le 31 Mar 2015
Réponse apportée : Matt J le 31 Mar 2015
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]

Réponses (1)

Matt J
Matt J le 31 Mar 2015
See the TRIU command.

Catégories

En savoir plus sur Operating on Diagonal Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by