This works:
% Original data:
A{1,1}=[1 2 3 4];
A{1,2}=[5 6 7 8];
A{2,1}=[11 12 13 14];
A{2,2}=[15 16 17 18];
% Create intermediate matrices:
O1 = cell2mat(A);
O2 = reshape(O1', [4 4])
% Create cell vector:
for k1 = 1:4
O{k1} = O2(k1,:);
end
% Create cell output array:
O = reshape(O, [2 2])'
% View output:
O{1,1}
O{1,2}
O{2,1}
O{2,2}