psk_4_gray_sofm.m

来自「通信系统中的最新的分块差分调制技术的源码」· M 代码 · 共 22 行

M
22
字号
function [b]=psk_4_gray_sofm(theta,ncon)
load W_4dpsk_320_chan5
nod=W;
k=ncon;
for k=1:ncon
    y=nod(k,2);
    x=nod(k,1);
    angle(k)=mod(atan2(x,y),2*pi);
end
theta_d=sort(angle);
a=mod(theta_d(4)+pi/4,2*pi);
if  theta<pi/4+theta_d(1)|theta>a
    bitp=[0 0];
elseif theta<pi/4+theta_d(2)
    bitp=[ 0 1];
elseif theta<pi/4+theta_d(3)
    bitp=[ 1 1];
else
     bitp=[1 0];  
end
b=bitp;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?