gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/horzcat.m
function out = horzcat(varargin) %HORZCAT Horizontal concatenation % [A B] is the horizontal concatenation of matrices A and B. A and B % must have the same number of rows. % % See also tall/cat. % Copyright 2015-2016 The MathWorks, Inc. if ~all(cellfun(@istall, varargin)) error(message('MATLAB:bigdata:array:AllArgsTall', upper(mfilename))); end adaptors = cellfun(@(x) x.Adaptor, varargin, 'UniformOutput', false); dim = 2; try newAdaptor = matlab.bigdata.internal.adaptors.combineAdaptors(dim, adaptors); catch E % combineAdaptors can throw a variety of errors that should appear to come from % this method. throw(E); end out = slicefun(@horzcat, varargin{:}); out.Adaptor = newAdaptor; end