www.gusucode.com > phased 案例源码 matlab代码程序 > phased/DetectionThresholdVersusNumberOfPulsesExample.m
%% Detection threshold versus number of pulses % Plot the SNR detection threshold against the number of pulses, for real and complex % noise. In each case, the SNR detection threshold is set for a probability of false % alarm (pfa) of 0.001. % Copyright 2015 The MathWorks, Inc. %% % Compute detection threshold for 1 to 10 pulses of real and complex noise. Npulses = 10; snrcoh = zeros(1,Npulses); snrreal = zeros(1,Npulses); Pfa = 1e-3; for num = 1:Npulses snrreal(num) = npwgnthresh(Pfa,num,'real'); snrcoh(num) = npwgnthresh(Pfa,num,'coherent'); end %% % Plot the detection thresholds against number of pulses. plot(snrreal,'ko-') hold on plot(snrcoh,'b.-') legend('Real data with integration',... 'Complex data with coherent integration',... 'location','southeast'); xlabel('Number of Pulses') ylabel('SNR Required for Detection') title('SNR Threshold for P_F_A = 0.001') hold off