hslogic算法仿真-注水法计算MIMO功率 T=randn(M,M)+j*randn(M,M); T=0.707*T; I=eye(M); eigen=eig(T*T'); %extract eigenvalues gamma=zeros(M,1); r=M;%set rank = number of antennas (full rank) p=1;%initial count for i=1:r mu=getmu(r,SNR,T,p,M);%de