How to set the diagonal of a cell array of matrices?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Mohammed Kagalwala
el 29 de Oct. de 2019
1 voto
Categorías
Más información sobre Operating on Diagonal Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!