📄 lfm_pc.m
字号:
tao=1*10^(-4);
f0=0;
B=1*10^6;
u=B/tao;
t=-tao/2:tao/1023:tao/2;
s=exp(j*2*pi*(f0*t+0.5*u*t.^2));
S0=fft(s,1024);
S1=S0.*conj(S0);
S2=fftshift(S1);
h=abs(ifft(S1,1024));
h1=fftshift(h);
subplot(1,2,1)
plot(t,h1/max(h1))
grid on
axis([-2e-5 2e-5 0 1]);
h2=abs(xcorr(s,s));
l=length(h2);
l1=-tao/2:tao/(l-1):tao/2;
subplot(1,2,2)
plot(l1,h2/max(h2))
grid on
axis([-1e-5 1e-5 0 1]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -