Nieuws

sub2ind now leverages scalar expansion and accepts a mix of scalars and vectors for subscript inputs. For example, sub2ind (sz, [1 2 3],2) is now the same as sub2ind (sz, [1 2 3], [2 2 2]). Previously ...
%TT_SUB2IND Converts multidimensional subscripts to linear indices. % INDS = TT_SUB2IND(SIZ,SUBS) returns the linear indices % equivalent to the subscripts in the array SUBS for a tensor of % size SIZ ...