📄 psk_4_gray_sofm.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -