view general/funutils/apply.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +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{:});