?? mti_fft_test8.asv
字號:
clear;
clc;
close all;
fr=1e3;%脈沖重復頻率
tr=1/fr;%脈沖重復周期
fs=1e6;%采樣頻率
ts=1/fs;%采樣周期
%%%%%%%%%%%%%%%%%%%%%%%%%生成測試模塊%%%%%%%%%%%%%%%%%%%%%%
Point=4000;
doppler_vector=2*pi*linspace(0,fr,Point);
t_doppler=(1:10)*tr;
test_matrix=t_doppler'*doppler_vector;
test_matrix_i=sin(test_matrix);
test_matrix_q=cos(test_matrix);
test_matrix=test_matrix_i+test_matrix_q*j;
%%%%%%%%%%%%%%固定雜波對消處理%%%%%%%%%%%%%%%%%%%%
yt=test_matrix;
for i=1:8
s_mti(i,:)=yt(i,:)+yt(i+2,:)-2*yt(i+1,:);%三脈沖對消
%s_mti(i,:)=yt(i,:)-yt(i+1,:);%兩脈沖對消
end
%s_mti=yt(1:8,:);
%%%%%%%%%%%%%%%%%%%采用FFT進行MTD處理%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
M=8;
L=length(s_mti);
for i=1:L
% s_temp=s_mti(:,i);
% s_temp=s_mti(:,i).*chebwin(M);%切比雪夫 加權FFT
s_temp=s_mti(:,i).*hamming(M);%Hamming 加窗FFT
s_mtd(:,i)=fft(s_temp,M);
end;
mtd_abs=abs(s_mtd);
mtd_abs=mtd_abs/max(max(mtd_abs));
mtd_abs=20*log10(mtd_abs+eps);
t=linspace(0,fr,Point);
figure
plot(t,abs(s_mtd(1,:)),'-r'),hold on
plot(t,abs(s_mtd(2,:)),'-g'),hold on
plot(t,abs(s_mtd(3,:)),'-b'),hold on
plot(t,abs(s_mtd(4,:)),'-c'),hold on
plot(t,abs(s_mtd(5,:)),'-m'),hold on;
plot(t,abs(s_mtd(6,:)),'-y'),hold on;
plot(t,abs(s_mtd(7,:)),'-k'),hold on
plot(t,abs(s_mtd(8,:)),'-c'),hold on
figure
plot(t,mtd_abs(1,:),'-r'),hold on
plot(t,mtd_abs(2,:),'-g'),hold on
plot(t,mtd_abs(3,:),'-b'),hold on
plot(t,mtd_abs(4,:),'-c'),hold on
plot(t,mtd_abs(5,:),'-m'),hold on;
plot(t,mtd_abs(6,:),'-y'),hold on;
plot(t,mtd_abs(7,:),'-k'),hold on
plot(t,mtd_abs(8,:),'-c'),hold on
axis([0,fr,-70,0])
figure
plot(max(abs(s_mtd)))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -