2 sizeCell=cellfun(@size,varargin(1:end-1),
'UniformOutput',
false);
4 nCheckDim=numel(sizeVec);
7 isValidVec=max(cellfun(@prod,sizeCell))==0;
14 nDimVec=cellfun(
'ndims',varargin(1:end-1));
15 maxDim=max([nDimVec nCheckDim]);
16 addVec=maxDim-nDimVec;
21 sizeCell(isnZero)=cellfun(@(x,y)[x ones(1,y)],...
22 sizeCell(isnZero),addCell,...
23 'UniformOutput',
false);
25 isToCheck=~isnan(sizeVec);
26 checkSize=sizeVec(isToCheck);
28 isValidVec=(cellfun(@(x) isequal(x(isToCheck),checkSize),sizeCell))&...
function num2cell(in inpArray, in varargin)
NUM2CELL is an extension of Matlab built-in function "num2cell" designed to work correctly with empty...
function isvalidsize(in varargin)
ISVALIDSIZE compares size of input arrays with size mask. Size mask can contain nans that allow any s...