Trying to combine multiple square matrices diagonally into a combined larger matrix

24 次查看(过去 30 天)
Im having trouble figuring out how to place square matricies diagonally within a larger combined matrix, does anyone know of a way of doing this? (Trying to create something like the above T matrix)(If the image is not clear i can upload another one)

回答(1 个)

Jon
Jon 2021-11-23
编辑:Jon 2021-11-23
You can use MATLAB's blkdiag function for this
so in your case
T = blkdiag(A,B,C)

类别

Help CenterFile Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by