Mercurial > hg > ishara
view sequences/@seq/max.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
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