www.gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/arrayfun.m
function varargout = arrayfun(fcn, varargin) %ARRAYFUN Apply a function to each element of a tall array. % Supported syntaxes: % TX = ARRAYFUN(FUN,TA) % [TX1,TX2,...] = ARRAYFUN(FUN,TA1,TA2,...) % [TX1,...] = ARRAYFUN(FUN,TA1,...,'UniformOutput',TF) % % Restrictions: % 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 arrayfun, tall. % Copyright 2016 The MathWorks, Inc. try [varargout{1:max(1, nargout)}] = funfunCommon(@arrayfun, fcn, {}, varargin{:}); catch E throw(E); end end