Build a Block matrix

1 view (last 30 days)
hdr mhr
hdr mhr on 24 Feb 2013
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
  1 Comment
Image Analyst
Image Analyst on 24 Feb 2013
Did you ever think that an example with actual sample matrices might help illustrate your question?

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!