count=count+1; end end
%+++++++++++++++++++++++++++++++++++++++++++++++
%++++++++++++++++++计算误码率++++++++++++++++++++++++ for k=1:N
if(outsign(k)~=datain(k)) counter=counter+1; end end end
Pe(SNR_System)=counter/(N*frame_num); end
%画图 figure plot(Pe,'b'); xlabel('信噪比'); ylabel('误码率');
title('不同信噪比下的误码率'); grid on;
%********************** preparation part *************************** para=64; % Number of parallel channel to transmit (points) fftlen=64; % FFT length
nd=1; % Number of information OFDM symbol for one loop ml=2; % Modulation level : QPSK gilen=8; % Length of guard interval (points)
%**************************Data generation ****************************
