psk_gen.m
来自「Adaptive Filter_Simon Haykin_Matlab_code」· M 代码 · 共 14 行
M
14 行
function [Msymb,Sset]=psk_gen(Mary,symb)
%
%Routine used to generate an unnormalizd psk symbol set
%mary is the Mary of the PSK set, eg Mary = 4 for QPSK set
%symb is the index of the symbol, ranging from 1:Mary
%Msymb is the modulated output
if nargin == 1, symb = 1:Mary; end
bits = log2(Mary);
Sset = exp(-i*2*pi/Mary*(0:Mary-1))';
Msymb = Sset(symb);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?