www.gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/cellfun.m
function varargout = cellfun(fcn, varargin) %CELLFUN Apply a function to each cell of a tall cell array. % Supported syntaxes: % TA = CELLFUN(FUN,TC) % [TA,TB] = CELLFUN(FUN,TC1,TC2,...) % [TA,...] = CELLFUN(FUN,TC,...,'UniformOutput',TF) % % Restrictions: % FUN must be a function handle. % FUN must not rely on any state such as PERSISTENT data or random % number generating functions such as RAND. % % The 'ErrorHandler' argument is not supported. % % In UniformOutput mode, outputs from FUN must be numeric, logical, char, or % cell. % % See also cellfun, tall. % Copyright 2016 The MathWorks, Inc. try [varargout{1:max(1, nargout)}] = funfunCommon(@cellfun, fcn, {'cell'}, varargin{:}); catch E throw(E); end end