clear allclose allclcN=16;%阵元个数En_n=0.5;snap_num=64;%快拍数c=3e+8;%c为光速fc=500e6;%雷达工作频率wavelength=c/fc;%波长d=wavelength/2;%阵元间距theta_0=25*pi/180;%来波方向theta_1=pi/6;theta_2=pi/3;% theta_0=0;% theta_1=pi/9;% theta_2=pi/6;theta=-pi/2:pi/180:pi/2;steer_sig_0=exp(j*2*pi*(0:N-1)*sin(theta_0)*d/wavelength);%信号导向矢量steer_sig_1=exp(j*2*pi*(0:N-1)*sin(theta_1)*d/wavelength);steer_sig_2=exp(j*2*pi*(0:N-1)*sin(theta_2)*d/wavelength);snap_sig_0=steer_sig_0*(randn(1,snap_n