annotate sequences/@seq/max.m @ 3:3f77126f7b5f
First major revision of sequence library, now using classdef form, STILL A BIT BROKEN!
author |
samer |
date |
Wed, 09 Jan 2013 22:22:21 +0000 |
parents |
|
children |
b1280319413e |
rev |
line source |
samer@3
|
1 function o=max(A,B,DIM),
|
samer@3
|
2 if nargin==2 && ~isempty(B), o=binfun(A,B,@max,@(a,b)sprintf('max(%s,%s)',a,b));
|
samer@3
|
3 else
|
samer@3
|
4 if nargin<3, o=fnseq(@max,A);
|
samer@3
|
5 else o=fnseq(@(x)max(x,[],DIM),A);
|
samer@3
|
6 end
|
samer@3
|
7 end
|
samer@3
|
8 end
|
samer@3
|
9
|