Here is my code:
%Input the length and width of the room
L = 4;W = 5;A = zeros(L,W);B = zeros(L,W);C = cell(L,W);for n = 1:L for m = 1:W C{n,m} = size(A); endend
And the output: C =
[1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double]
I figured it would give me 5×4 arrays but it is not.
Best Answer