📄 parameter.m
字号:
%This is the APSK-Paramters Initialization file
Method='16APSK';
%M-Ary APSK
if strncmpi(Method,'16APSK',6)
M_ary = 16;
elseif strncmpi(Method,'32APSK',6)
M_ary=32;
else
error('Invalid method option for APSK.')
end
%bits per symbol
BitsPerSymb = round(log(M_ary)/log(2));
%Definition of the APSK
%NumSig: the number of points on each circle
%Amp: the radius of each circle
%Phs: the phase of the first point on each circle
% The NumSig,Amp and Phs are all vectors having the same length that equal
% the number of the circles
if M_ary==16
Numsig=[4,12];
Amp=[1,3.15];
Phs=[pi/4,pi/12];
else
Numsig=[4,12,16];
Amp=[1,2.84,5.27];
Phs=[pi/4,pi/12,pi/8];
end
%Frequency of the Carrier
Fc = 1800;
%Bit duration
Tb = .01;
%Symbol duration
Ts = Tb * BitsPerSymb;
SymbolRate = 1 / Ts;
%NULL to NULL bandwidth
BaseBand_BandWidth = 1 / Ts;
TotalBitFrames = 5;
SymbolsPerFrame = 50;
BitPerFrame = BitsPerSymb * SymbolsPerFrame;
SymbolsPerFrame = BitPerFrame / BitsPerSymb;
TotalBitsCount = SymbolsPerFrame * BitsPerSymb * TotalBitFrames;
%Sampling Rate > 2 * Max Freq
SamplingRate = 2.5 * (Fc + BaseBand_BandWidth);
%Sampling Rate should be a multiple of Symbol Rate
%so that there are integer number of samples per symbol
SamplingRate = SamplingRate + mod(SamplingRate, SymbolRate);
SamplesPerSymbol = ceil(SamplingRate / SymbolRate);
%Root-Raised Cosine filter Paramerters
RollOff_Factor = 0.35;
N_T = 3;
RATE = SamplesPerSymbol;
%energy per symbol
Es=1;
%Boolean data types
TRUE = 1;
FALSE = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -