2 if ~isnumeric(nDims)||numel(nDims)~=1||...
3 fix(nDims)~=nDims||nDims<0
6 'nDims is expected to be a scalar positive integer value');
10 sizeVec=size(value,1);
12 sizeCVec=cell(1,max(ndims(value),nDims));
13 [sizeCVec{:}]=size(value);
14 sizeVec=[sizeCVec{1:nDims}];
function getfirstdimsize(in value, in nDims)
GETFIRSTDIMSIZE returns a size vector for the first N dimensions where N is specified.