How to set the diagonal of a cell array of matrices?
Mostra commenti meno recenti
Hi,
I'm looking to set the diagonal of my cell array to identity, specifically eye(3,3). I know a simple for loop solution exists, but if there's something more elegant please let me know.
Thank you.
Risposta accettata
Più risposte (1)
Mohammed Kagalwala
il 29 Ott 2019
1 voto
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!