view sequences/@seq/max.m @ 29:61921dceded1

More documentation on type system.
author samer
date Sat, 19 Jan 2013 17:56:21 +0000
parents b1280319413e
children
line wrap: on
line source
function o=max(A,B,DIM), 
	if nargin==2 && ~isempty(B), o=binfun(A,B,@max,@(a,b)sprintf('max(%s,%s)',a,b));
	else 
		if nargin<3, o=map(@max,A);
		else o=map(@(x)max(x,[],DIM),A);
		end
	end
end