www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ComputeRequiredSNRExample.m
%% Compute Required SNR for Probability of Detection % Compute the required SNR of a single pulse to achieve a detection % probability of 0.9 as a function of the false alarm probability. % Copyright 2015 The MathWorks, Inc. %% % Set the probability of detection to 0.9 and the probabilities of false % alarm from .0001 to .01. Pd=0.9; Pfa=0.0001:0.0001:.01; %% % Loop the Albersheim equation over all Pfa's. snr = zeros(1,length(Pfa)); for j=1:length(Pfa) snr(j) = albersheim(Pd,Pfa(j)); end %% % Plot SNR versus Pfa. semilogx(Pfa,snr,'k','linewidth',1) grid axis tight xlabel('Probability of False Alarm') ylabel('Required SNR (dB)') title('Required SNR for P_D = 0.9 (N = 1)')