MatrixBerryCore
isequalcellelemsize.m
Go to the documentation of this file.
1 function isPositive=isequalcellelemsize(value1,value2)
2 isPositive=false;
3 nDimVec1=cellfun('ndims',value1);
4 nDimVec2=cellfun('ndims',value2);
5 if ~isequal(nDimVec1,nDimVec2)
6  return;
7 end
8 for iDim=1:max(nDimVec1)
9  if ~isequal(cellfun('size',value1,iDim),...
10  cellfun('size',value2,iDim))
11  return;
12  end
13 end
14 isPositive=true;
function isequalcellelemsize(in value1, in value2)