function t=mmin(A)
% mmin - minimum over both dimensions
%
% mmin :: [[N,M]-A] -> A, 1..N, 1..M.
if nargout==1, t=min(A(:));
else
	[t1,i1]=min(A,[],1);
	[t2,i2]=min(t1,[],2);
	t=t2;
	if nargout==3, i=i1(i2); j=i2; 
	elseif nargout==2, i=[i1(i2) i2]; end
end
