We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dims
1 parent b3285a0 commit 902a2e5Copy full SHA for 902a2e5
MappedTensor.m
@@ -550,6 +550,18 @@ function delete(mtVar)
550
end
551
552
553
+ % ndims - METHOD Overloaded ndims function
554
+ function [nDim] = ndims(mtVar, varargin)
555
+ % - If varargin contains anything, a cell reference "{}" was attempted
556
+ if (~isempty(varargin))
557
+ error('MappedTensor:cellRefFromNonCell', ...
558
+ '*** MappedTensor: Cell contents reference from non-cell obejct.');
559
+ end
560
+
561
+ % - Return the total number of dimensions in the tensor
562
+ nDim = length(size(mtVar));
563
564
565
% numel - METHOD Overloaded numel function
566
function [nNumElem] = numel(mtVar, varargin)
567
% - If varargin contains anything, a cell reference "{}" was attempted
0 commit comments