Here's a simple example to show you how you can out arrays into cells:
A=cell(2,1); % create a 2x1 cell array
A{1}=ones(3); % put a 3x3 matrix into the first cell
A{2}=rand(5); % put a 5x5 array into the second cell
A{3}=zeros(2); % grow the cell array to 3x1 and put a 2x2 matrix in the third cell
A % see what A looks like
So you can grow cell arrays, for example in a for
loop, e.g.:
A=cell(5,1);
for i=1:5
A{i}= ...
end