2 nDimVec=cellfun(
'ndims',inpCell);
4 sizeMat=zeros([nDims size(inpCell)]);
6 sizeMat(iDim,:)=reshape(cellfun(
'size',inpCell,iDim),1,[]);
9 nRealDimMat=sum(sizeMat~=1,1);
10 nRealDims=max(nRealDimMat(:));
12 for iRealDim=1:nRealDims-1
13 inpCell=cellfun(hFunc,inpCell,
'UniformOutput',
false);
16 resArr=cellfun(hFunc,inpCell,varargin{:});
function cellfunallelem(in hFunc, in inpCell, in varargin)
CELLFUNALLELEM applies the specified function to all elements in each cell of the specified cell arra...