Tested under Matlab R2016a with Tensor Toolbox version 2.5 [2]
[1] Le Song, Animashree Anandkumar, Bo Dai, and Bo Xie. Nonparametric Estimation of Multi-View Latent Variable Models. https://arxiv.org/abs/1311.3287.
[2] http://www.sandia.gov/~tgkolda/TensorToolbox/index-2.5.html