sq2qam_gray_demap.m

来自「一些关于调指和解调的小程序」· M 代码 · 共 20 行

M
20
字号
function out=sq2QAM_Gray_demap(input)

%%%-----constellation--------------
%%% 0-------- +1
%%% 1-------- -1

K=length(input);
for i=1:K
    temp(i)=real(input(i));
end

for i=1:K
    if temp(i)>0
        t_out(i)=0;
    else t_out(i)=1;
    end
end

out=t_out;      %%% serial sequence
clear K temp t_out

⌨️ 快捷键说明

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