Graphics Programs Reference
In-Depth Information
SNR_SW5 = snr_inc
else
% np > 1 use MATLAB function pd_swerling5.m
snr_inc = 0.1 - 0.005;
Pd_Sw5 = 0.001;
while(Pd_Sw5 <= pd)
snr_inc = snr_inc + 0.005;
Pd_Sw5 = pd_swerling5(pfa, 1, np, snr_inc);
end
PD_SW5 = Pd_Sw5
SNR_SW5 = snr_inc
end
if sw_case == 5
Lf = 0.
return
end
% *************** End Swerling 5 case ************
% *************** Swerling 1 case ****************
if (sw_case == 1)
Pd_Sw1 = 0.001;
snr_inc = 0.1 - 0.005;
while(Pd_Sw1 <= pd)
snr_inc = snr_inc + 0.005;
Pd_Sw1 = pd_swerling1(nfa, np, snr_inc);
end
PD_SW1 = Pd_Sw1
SNR_SW1 = snr_inc
Lf = SNR_SW1 - SNR_SW5
end
% *************** End Swerling 1 case ************
% *************** Swerling 2 case ****************
if (sw_case == 2)
Pd_Sw2 = 0.001;
snr_inc = 0.1 - 0.005;
while(Pd_Sw2 <= pd)
snr_inc = snr_inc + 0.005;
Pd_Sw2 = pd_swerling2(nfa, np, snr_inc);
end
PD_SW2 = Pd_Sw2
SNR_SW2 = snr_inc
Lf = SNR_SW2 - SNR_SW5
end
% *************** End Swerling 2 case ************
% *************** Swerling 3 case ****************
Search WWH ::




Custom Search