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

📄 fig_2_11_ab.m

📁 Ultra.Wideband.Signals.and.Systems.in.Communication.Engineering.eBook-kB代码
💻 M
字号:
clear all
tau=5e-10;f_1=4e9;
E=1;
K=sqrt(E/tau/sqrt(pi/2));
it=0;
for t=-2e-9:1e-12:2e-9;
    it=it+1;
    s_j(it)=sqrt(2)*K*exp(-t^2/tau^2)*cos(2*pi*f_1*t);
end,
figure (1);t=-2e-9:1e-12:2e-9;plot(t,s_j,'b');
xlabel('Time, sec');ylabel('Amplitude');grid;

iif=0;
for f=0:1e8:2e10;
    iif=iif+1;
    S_j(iif)=sqrt(2)*.5*K*tau*sqrt(pi)*exp(-(pi*tau*(f-f_1))^2);
end,
figure (3);f=0:1e8:2e10;plot(f,S_j,'r')
xlabel('Frequency, Hz');ylabel('Magnitude');grid;

⌨️ 快捷键说明

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