function M=bettersubplot(m,n);
%BETTERSUBPLOT.m--Returns handles to subplots organized consistently
%
%M=bettersubplot(m,n);
%
%Creates m-rows of subplots with n columns in each row.  The handles
%to the subplots are returned in an m-by-n matrix M.
%

M=zeros(m,n);%allocate space for the handles

num=1;
for j=1:m;
	for k=1:n;
   	M(j,k)=subplot(m,n,num);
      num=num+1;
   end
end
