I always thought that in order to extend t-test to multivariate, we have to try to generalize 2 sample t-test, change the x_i - x_j to the 2-norm etc. It turns out that there is a more conventional way to do it...
It is called, Hotelling's T squared test.
And someone have a nice Matlab package for it: