www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@xregpointer/cat.m
function p = cat(dim, varargin) %CAT Concatenate xregpointer arrays. % % CAT(DIM,A,B) concatenates the xregpointer arrays A and B along the % dimension DIM. % CAT(2,A,B) is the same as [A,B]. % CAT(1,A,B) is the same as [A;B]. % % B = CAT(DIM,A1,A2,A3,A4,...) concatenates the input xregpointer arrays % A1, A2, etc. along the dimension DIM. % % % See also NUM2CELL. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % call double on all inputs for n = 1:nargin-1; varargin{n} = double(varargin{n}); end p = xregpointer; p.ptr = cat(dim, varargin{:});