How to set the diagonal of a cell array of matrices?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Mohammed Kagalwala
am 29 Okt. 2019
1 Stimme
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!