MATLAB: How can we create two vectors have normally distributed random entries with zero mean

vectors

How can we create two vectors have normally distributed random entries with zero mean , and they are scaled so that in Matlab.

Best Answer

I correct the flaw of dpb method
U=randn(10,1);
V=randn(10,1);
ps=U.'*V;
a=sqrt(abs(ps));
U=(sign(ps)/a)*U;
V=(1/a)*V;