How to set the diagonal of a cell array of matrices?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Mohammed Kagalwala
le 29 Oct 2019
1 vote
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!