MATLAB: How to represent a set of matrices into a single cell

cell arraysfor loopmatrix manipulation

My problem is as follows:
a=4;
b=4;
A=round((30-10).*rand(a,b) + 10);
B=round((100-40).*rand(a,b) + 40);
C=round((250-80).*rand(a,b) + 80);
D=round((80-20).*rand(a,b) + 20);
E=cell(a,b);
for i=1:a
for j=1:b
E{i,j}=[A(i,j) B(i,j) C(i,j) D(i,j)];
end
end
Is there any simple and short ways instead of using loop or any other unnecessary lines?

Best Answer

E = num2cell([A(:), B(:), C(:), D(:)], 2);
E = reshape(E, a, b)