|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
fz=10e3%脉冲重复频率
. R9 l5 P0 y+ ^4 O1 @: Z( a; j+ I" a }3 qtz=1/fz%脉冲重复周期; i" L+ i9 v& C* i" e2 Z! }
fs=1e5%采样频率
+ p. `: H! W6 o. q* P, qts=1/fs%采样周期
- S, }, I/ A, Jf_doppler=2.5e3%多普勒频率' M0 l- N; d! q" y, l1 g
N=tz/ts;%一个周期宽度
* q' X e4 F% w& b( eN=fix(N)%取接近且小于n的整数. J& o* g6 w% L9 k3 B: T
%%%产生雷达回波%%%%
u. i3 r' O. T: eecho_mobj_pulse=[zeros(1,100),1,1,zeros(1,N-101)];2 Q6 i" @+ D# s
s_pc=repmat(echo_mobj_pulse,1,16);
0 P+ b: Z2 x3 in=1:16*N;. y& O5 W" x# n3 t
s_doppler=cos(n*2*pi*f_doppler/fs);
R z) g2 X( D( P; G2 Y A: ds_pc=s_pc.*s_doppler;* n r/ B4 C+ y V
s_noise=0.1*rand(1,N*16);
# p. T2 I8 t+ F4 d4 cs_pc=s_pc+s_noise;, m& d+ l3 q9 j3 P% v: U
figure,+ N" }+ s! |6 Z
plot(0:ts16*N-1)*ts,s_pc),xlabel('t(单位:s)'),title('回波信号');! T( t; z8 H) c! u
s_pc=reshape(s_pc,fix(N),16);; i2 U7 @2 e e+ n) W
|
|