I am trying to generate a set of k, random, unit, complex vectors with n components in matlab.
I understand that there can be some issues with making sure the resulting vectors are isotropic. Would something like the following work?
vectors=exp(2i*pi*rand(k,n)).*randn(k,n);
for i=1:k
vectors(i,:)=vectors(i,:)/norm(vectors(i,:);
end
Thanks for your help,
Stan