雷达信号分为单载频,线性调频,多项编码信号等,本代码用matlab仿真了各种雷达信号
1.[代码]matlab仿真代码
clc;clear;
D=2*pi*rand;
f0=8e6;
A=1;
T=25.6e-6;
Fs=80e6;Ts=1/Fs;
N=T/Ts;
t=linspace(-T/2,T/2,N);
St1=A*exp(j*(2*pi*f0*t+D));
subplot(2,1,1)
plot(t*1e6,real(St1));
xlabel('Time (us)');
title('Real part of signal');
grid on;axis tight;
subplot(2,1,2)
freq=linspace(-Fs/2,Fs/2,N);
plot(freq*1e-6,fftshift(abs(fft(St1))));
xlabel('Frequency (MHZ)');
title('Magnitude spectrum of signal');
grid on;axis tight;
2.[文件] 单载频信号.txt ~ 424B 下载(64)
clc;clear;
D=2*pi*rand;
f0=8e6;
A=1;
T=25.6e-6;
Fs=80e6;Ts=1/Fs;
N=T/Ts;
t=linspace(-T/2,T/2,N);
St1=A*exp(j*(2*pi*f0*t+D));
subplot(2,1,1)
plot(t*1e6,real(St1));
xlabel('Time (us)');
title('Real part of signal');
grid on;axis tight;
subplot(2,1,2)
freq=linspace(-Fs/2,Fs/2,N);
plot(freq*1e-6,fftshift(abs(fft(St1))));
xlabel('Frequency (MHZ)');
title('Magnitude spectrum of signal');
grid on;axis tight;
3.[文件] gai.txt ~ 449B 下载(52)
clc;clear;
D=2*pi*rand;
f0=8e6;
A=1;
T=25.6e-6;
B=4e6;
K=B/T;
Fs=80e6;Ts=1/Fs;
N=T/Ts;
t=linspace(-T/2,T/2,N);
St1=A*exp(j*(pi*K*t.^2+2*pi*f0*t+D));
subplot(2,1,1)
plot(t*1e6,real(St1));
xlabel('Time (us)');
title('Real part of signal');
grid on;axis tight;
subplot(2,1,2)
freq=linspace(-Fs/2,Fs/2,N);
plot(freq*1e-6,fftshift(abs(fft(St1))));
xlabel('Frequency(MHZ)');
title('Magnitude spectrum of signal');
grid on;axis tight;
4.[文件] gai.txt ~ 449B 下载(42)
clc;clear;
D=2*pi*rand;
f0=8e6;
A=1;
T=25.6e-6;
B=4e6;
K=B/T;
Fs=80e6;Ts=1/Fs;
N=T/Ts;
t=linspace(-T/2,T/2,N);
St1=A*exp(j*(pi*K*t.^2+2*pi*f0*t+D));
subplot(2,1,1)
plot(t*1e6,real(St1));
xlabel('Time (us)');
title('Real part of signal');
grid on;axis tight;
subplot(2,1,2)
freq=linspace(-Fs/2,Fs/2,N);
plot(freq*1e-6,fftshift(abs(fft(St1))));
xlabel('Frequency(MHZ)');
title('Magnitude spectrum of signal');
grid on;axis tight;