uwb_monocycle_pulsegen.m
来自「uwb高斯脉冲的产生程序」· M 代码 · 共 32 行
M
32 行
function [y]=uwb_monocycle(Tf,Ts,Tp);% generate the uwb pulse signal,( pay attention 4,16,divided tf by 4);
%if nargin==1
chip=5e6;
tf_uwb=Tf;% the period of monocycle, so in the bandwidth of cdma , the number of discrete spectrum line is no more than one.
wb=1/5e8;
fc=1/Tp;%5e8;
Bp=1/wb;
%%%when the pulse width is 2ns,its pulse bandwidth Bp is 500MHz
fs=Bp*8;
fs_uwb=Bp*8;
x=linspace(0,tf_uwb,tf_uwb*fs_uwb);
%fs=fs/100;
%dpn_shiftemodulation
tt=x-0.53125*wb;
rt=exp(-2*pi*pi*(tt).*(tt)*fc*fc);
y=2*sqrt(exp(1))*fc*pi*tt.*rt;
GaussianPulseSamples.signals.values=[y';0];
GaussianPulseSamples.signals.dimensions=1;
GaussianPulseSamples.time=[];
save GaussianPulseGenerator GaussianPulseSamples;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?