📄 mod_4psk.m
字号:
function y=mod_4PSK(x)
% 4PSK Modulator
%
% x -- binary input bits. The length of x must be multiples of 4.
% y -- complex output. vector
% cons =exp(j*([ 1 4 2 3 8 5 7 6]*pi/4-pi/8));
cons =exp(j*([ 8 2 6 4]*pi/4));
% cons =exp(j*([ 1 8 2 3 7 6 5 4]*pi/4));
temp = reshape(x,2,length(x)/2);
y = cons(bi2de(temp')+1);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -