Mean of elements of a tensor train representation of a matrix. Syntax:
answer=mean(ttrain,dim)
The mean value is computed along the specified dimension (dim=1 or dim=2).