MATLAB: Copying cells in cell arrays

cell arrays

I have an 11×1 cell array, and I am wanting to copy those cells to successive columns such that I am left with an 11×11 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.

Best Answer

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