精选优质文档-倾情为你奉上%dpsk格雷码矩形%等效基带调制clc;clear all;close all;%关闭所有窗口,比如之前画的图nsymbol = 1e6;%每种信噪比下符号数的发送符号数,106个数errornumber = zeros(1,10);errorratio = zeros(1,10);dataa = randi(0,1,1,2*nsymbol);%产生1行,2*nsymbol列均匀分布的随机数datab = zeros(1,2*nsymbol);data_mod1 = zeros(1,nsymbol);%各参量初始化data_mod2 = zeros(1,nsymbol);data_demod1 = zeros(1,nsymbol);data_demod2 = zeros(1,nsymbol);s_receive1 = zeros(1,nsymbol);s_receive2 = zeros(1,nsymbol);datab_receive = zeros(1,2*ns