Copying cells in cell arrays

I have an 11x1 cell array, and I am wanting to copy those cells to successive columns such that I am left with an 11x11 cell array with each column of cells identical to the first. However, various attempts to do this fail, so I think I may be making mistakes with notation (brackets, etc.). Could someone tell me how to do this for a general situation? Thanks.

 Accepted Answer

A = repmat(num2cell(rand(11,1)),1,11)

More Answers (0)

Categories

Find more on Operators and Elementary Operations 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!