MatrixBerryCore
cat.m
Go to the documentation of this file.
1 function outArray=cat(dimNum,varargin)
2 if nargin>=2
3  className=class(varargin{1});
4  isEmptyVec=cellfun(@(x)max(size(x)),varargin)==0;
5  if all(isEmptyVec)
6  outArray=mxberry.core.type.createarray(className,[0 0]);
7  else
8  outArray=cat(dimNum,varargin{~isEmptyVec});
9  end
10 else
11  outArray=cat(dimNum);
12 end
function cat(in dimNum, in varargin)