www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregmonitorplotproperties/horzcat.m

    function A = horzcat(varargin)
%HORZCAT A short description of the function
%
%  OUT = HORZCAT(IN)
%  

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


% Remove any builtin isempty's
args = varargin(~cellfun('isempty', varargin));
% Anything left
if isempty(args)
    A = xregmonitorplotproperties;
    return
end

% Are all the inputs of the correct type
if all(cellfun('isclass', args, 'xregmonitorplotproperties'))
    A = xregmonitorplotproperties;
    % Need to treat args like a structure not an object and concatenate
    % into a structure array
    args = builtin('horzcat', args{:});
    % Now concatenate the structure array
    A.plots = horzcat(args(:).plots);
else
    error(message('mbc:xregmonitorplotproperties:InvalidArgument'));
end