⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cp0201_2ppm_th.m

📁 超宽带发射机的输出程序
💻 M
字号:
function [PPMTHseq,THseq] = ...
  cp0201_2PPM_TH(seq,fc,Tc,Ts,dPPM,THcode)
dt = 1 ./ fc;                   
framesamples = floor(Ts./dt);  
chipsamples = floor (Tc./dt);  
PPMsamples = floor (dPPM./dt); 
THp = length(THcode);          
totlength = framesamples*length(seq);
PPMTHseq=zeros(1,totlength);
THseq=zeros(1,totlength);
for k = 1 : length(seq)
    index = 1 + (k-1)*framesamples;
    kTH = THcode(1+mod(k-1,THp));
    index = index + kTH*chipsamples;
    THseq(index) = 1;
    index = index + PPMsamples*seq(k);
    PPMTHseq(index) = 1;
        
end

⌨️ 快捷键说明

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