How do I make a block diagonal matrix using blkdiag function for a N dimensions
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Travis Heckler
am 4 Aug. 2019
Beantwortet: Andrei Bobrov
am 4 Aug. 2019
I have a matrix A which can be converted using the
blkdiag(A,A);
for 2D and m
blkdiag(A,A,A);
for 3D but I want the user to input the dimension and based on that a block diagonal matrix has to be generated something like
blkdiag(A,A,A....An);
. I know we have to use loops but i cant wrap my head around the actual code, if anyone could help that'd be great !
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!