?? uwb_monocycle_pulsegen.m
字號:
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;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -