MATLAB: Need to combine two matrix

combine two matrix

Hi, I have two matrices P= 1 2;3 4;5 6; Q= 7 8;9 10;11 12;
I want the result
R=
{[1 7] [2 8];
[3 9] [4 10];
[5 11] [6 12]};
Can any one help me?

Best Answer

How about the following?
R = mat2cell([P(:) Q(:)],ones(1,numel(P)))
R = reshape(R,[],2);