Hey all,
I have two cell arrays:
- ca = 7×9 cell array where each cell is a block of pixels 64x64x3
- ca2 = 7×8 cell array where each cell is a block of pixels 64x64x3
I would like to interleave the cell array by columns like so:
- ca3 = {ca{:,1};ca2{:,1};ca{:,2};ca2{:,2};ca{:,3};ca2{:,3};ca{:,4};ca2{:,4};ca{:,5};ca2{:,5};ca{:,6};ca2{:,6};ca{:,7};ca2{:,7};ca{:,8};ca2{:,8};ca{:,9}}';
I'm sure there has to be a more programmatic way of doing this and in a more extensible fashion(where if I have more then 8/9 columns I wouldn't have to keep adding to the code).
Thanks! Hope this makes sense
Best Answer