线性调频信号;
程序:
clear all;
close all;
A=5;f0=5;fs=256;k=2
t=[1/fs-1:1/fs:1-1/fs];
f=[-fs/2:fs/2-1];
LFM1=A*exp(j*2*pi*f0*t+j*pi*k*t.^2);
LFM2=fftshift(fft(LFM1,fs));
LFM_noise1=awgn(LFM1,10);
LFM_noise2=fftshift(fft(LFM_noise1,fs));
figure
subplot(411);
plot(t,LFM1);xlabel('Time/s');ylabel('Amplitude/v');title('LFM 时域');
subplot(412);
plot(f,abs(LFM2));xlabel('Frequency/Hz');ylabel('Spectrum');title('LFM 频域');
subplot(413);
plot(t,LFM_noise1);xlabel('Time/s');ylabel('Amplitude/v');title('LFM 噪声时域');
subplot(414);
plot(f,LFM_noise2);xlabel('Time/s');ylabel('Amplitude/v');title('LFM 噪声频域');