view general/funutils/apply.m @ 9:45aaf9b2d7b0

Moved high-order sequence/list functions to @cell class.
author samer
date Mon, 14 Jan 2013 15:49:04 +0000
parents e44f49929e56
children fbc0540a9208
line wrap: on
line source
function varargout=apply(fn,args)
% apply - Apply function to list (cell array) of arguments
%
% Not typable.
%
% if [y1,y2,...]=fn(x1,x2,...), then
% [y1,y2,...]=apply(fn,{x1,x2,...})

[varargout{1:max(1,nargout)}] = feval(fn,args{:});