gusucode.com > 自适应信号的估计与处理,计算通信系统的误码率matlab源码程序 > 自适应信号的估计与处理,计算通信系统的误码率matlab源码程序/main_SER.m

    %=====计算通信系统的误码率=====
clear all
close all
clc
SNR=0:2:20;
noise=10.^(-1*SNR/10);
Z=50000;
T=500;
color=['r','g','k'];
figure;
for i=1:3
    for j=1:size(noise,2)
        serr(j)=ser(i,noise(j),Z,T);
    end
    semilogy(SNR,serr,color(i));hold on;grid on;
end
legend('信道(a)','信道(b)','信道(c)');
title('通信系统的误码率性能');xlabel('SNR/dB');ylabel('SER');