Mercurial > hg > ishara
annotate general/cellutils/@cell/zipwith.m @ 9:45aaf9b2d7b0
Moved high-order sequence/list functions to @cell class.
author | samer |
---|---|
date | Mon, 14 Jan 2013 15:49:04 +0000 |
parents | |
children |
rev | line source |
---|---|
samer@9 | 1 function Y=zipwith(fn,varargin) |
samer@9 | 2 % zipwith - Zip cell arrays with a function |
samer@9 | 3 % |
samer@9 | 4 % zipwith :: ( |
samer@9 | 5 % (D1,...,Dn)->R ~ function of n arguments, |
samer@9 | 6 % {[size]->D1}, ..., {[size]->Dn} ~ n cell arrays of appropriate types |
samer@9 | 7 % ) -> {[size]->R} ~ cell array of results |
samer@9 | 8 |
samer@9 | 9 Y=cellzip(fn,varargin{:}); |
samer@9 | 10 |
samer@9 | 11 |