How to do a lower triangular with ones along the diagonal ?
Mostra commenti meno recenti
Hello,
I want to do a lower triangular with ones along the diagonal. for example, I have 62 x 62 matrix of (binary of 1s and 0s) and wants to transfer this matrix to a lower triangular with ones along the diagonal
here, I use zeros for create A= 62 x 62 matrix and used tril(A) to get the lower triangular matrix
A=zeros(62,62);
tril(A);
I get a lower triangular matrix but how to get a lower triangular with ones along the diagonal from matrix A?
please, help me.
Thanks
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!