资源描述:
《线性调频模糊函数代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、clearallclcclftaup=1;b=10;up_down=-1;x=lfm_ambg(taup,b,up_down);taux=-1.1*taup:0.01:1.1*taup;fdy=-b:0.01:b;figure(1)mesh(100*taux,fdy./10,x)xlabel('Delay-mus')ylable('Doppler-MHz')zlable('
2、chi(tau,fd)
3、')title('模糊函数')figure(2)contour(100.*taux,fdy./10,x)xlabel('Delay-mus')yla
4、ble('Doppler-MHz')title('模糊函数等高线')gridonN_fd_0=(length(fdy)+1)/2;x_tau=x(N_fd_0,:);function[x]=lfm_ambg[taup,b,up_down]eps=0.000001;i=0;mu=up_down*b/2./taupfortau=-1.1*taup:0.01:1.1*taup;i=i+1;j=0;forfd=-b:0.01:bj=j+1;val1=1-abs(tau)/taup;val2=pi*taup*(1.0-abs(tau)/taup);val3=(f
5、d+mu*tau);val=val2*val3+eps;x(j,i)=abs(val1*sin(val)/val);endendclearallclcclftaup=1;b=10;up_down=-1;x=lfm_ambg(taup,b,up_down);taux=-1.1*taup:0.01:1.1*taup;fdy=-b:0.01:b;figure(1)mesh(100*taux,fdy./10,x)xlabel('Delay-mus')ylabel('Doppler-MHz')zlable('
6、chi(tau,fd)
7、')title('模糊
8、函数')figure(2)contour(100.*taux,fdy./10,x)xlabel('Delay-mus')ylable('Doppler-MHz')title('模糊函数等高线')gridonN_fd_0=(length(fdy)+1)/2;x_tau=x(N_fd_0,:);function[x]=lfm_ambg[taup,b,up_down]eps=0.000001;i=0;mu=up_down*b/2./taupfortau=-1.1*taup:0.01:1.1*taup;i=i+1;j=0;forfd=-b:0.01:bj=j
9、+1;val1=1-abs(tau)/taup;val2=pi*taup*(1.0-abs(tau)/taup);val3=(fd+mu*tau);val=val2*val3+eps;x(j,i)=abs(val1*sin(val)/val);endend舒文23:58:41clearallclcclftaup=1;b=10;up_down=-1;%x=lfm_ambg(taup,b,up_down);eps=0.000001;i=0;mu=up_down*b/2./taup;fortau=-1.1*taup:0.01:1.1*taup;i=i+1;j
10、=0;forfd=-b:0.01:bj=j+1;val1=1-abs(tau)/taup;val2=pi*taup*(1.0-abs(tau)/taup);val3=(fd+mu*tau);val=val2*val3+eps;x(j,i)=abs(val1*sin(val)/val);endendtaux=-1.1*taup:0.01:1.1*taup;fdy=-b:0.01:b;figure(1)mesh(100*taux,fdy./10,x)xlabel('Delay-mus')ylable('Doppler-MHz')zlable('
11、chi
12、(tau,fd)
13、')title('模糊函数')figure(2)contour(100.*taux,fdy./10,x)xlabel('Delay-mus')ylabel('Doppler-MHz')title('模糊函数等高线')gridonN_fd_0=(length(fdy)+1)/2;x_tau=x(N_fd_0,:);