function e = end(T,i,n)
% overloaded end function

if n==1
  e = prod(size(T)); %#ok<PSIZE>
else
  e = size(T,i);
end

mtex-toolbox
github-repos/MATLAB/mtex-toolbox-mtex/mtex-f0ce46a720935e9ae8106ef919340534bca1adcb/TensorAnalysis/@tensor/end.m
mtex
github-repos/MATLAB/mtex-toolbox-mtex
f0ce46a720935e9ae8106ef919340534bca1adcb