精选优质文档-倾情为你奉上% 2005-3-26% 1 transmit,1 receive(3bit/s/Hz)% 8PSK the total rate is 2bit/s/Hz % uncodedclear allclc%SNR upto 20 dBsEbNo=10 15 20 25 30;%N, M: number of transmit and receive antennasN=1;Num=500;% number of frameK=40; % numver of symbols in a frame% initialize countidx=1;BIT=3;% BIT=2 for QPSK% BIT=3 for 8PSK% BIT=4 for 16QAM%wait=0;% the total bit is K*BITfor en=1:length(EbNo) sigma=0.5/(10(E