Did you ever think that an example with actual sample matrices might help illustrate your question?
Build a Block matrix
6 次查看(过去 30 天)
显示 更早的评论
Hi I have an nxn matrix called C_mx which is initialized by ones(n). I want to build a block matrix C_holder to hold twenty of these nxn matrices, five in each row (4 rows). I have twenty pair of variables that contribute to calculating C_mx. I run a for loop to calculate C_mx or each pair and I would like to store the calculated C_mx in C_holder every time. Say for the first pair, C_mx is calculated and placed in C_holder as the first block matrix. What I would also like to be able do, is that after generating C_holder for all C_mx's, I want to be able to extract let say, the 4th C_mx from C_holder. In another world, is there any way that I can index this C_holder like a 4x5 matrix, where each index refers to one of the C_mx's, so that I can point out to that specific index to get the C_mx that I want and and do my calculation? I hope I was able to clearly state what I want to do.
Thank you
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!