wow, I am not going to figure how you came up with this one Roger ;)
How about one with few more lines? This is my attempt: It assumes
also even rows/columns.
-----------------------------------
clear all;
M= [50 55 52 51
20 21 24 23
1 1 2 2
1 2 1 2
89 88 80 82];
[p,q]=size(M);
np=p*q/2;
B=zeros(np,2); %make storage for result
%make the 2 sub matrices
m1=reshape(M(:,1:2:q),[np/2,2]);
m2=reshape(M(:,2:2:q),[np/2,2]);
%stuff them into the result matrix
B(1:2:np,:)=m1;
B(2:2:np,:)=m2;
--------------------------
B =
50 52
55 51
20 24
21 23
1 2
1 2
1 1
2 2
89 80
88 82
--Nasser