Advertisement
stiansjogren

Efficiency factor

Sep 23rd, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.39 KB | None | 0 0
  1. function E = efficiencyFactor(Pd, Pfa, n)
  2.    
  3.     SNR1 = zeros(1,numel(pd));
  4.     SNRn = zeros(1,numel(pd));
  5.  
  6.     for i=1:numel(Pd)
  7.  
  8.         %SNR for sigal pulse
  9.         SNR1(i) = calcSNR(Pd(i),Pfa,1);
  10.         %SNR for n signal pulses
  11.         SNRn(i) = calcSNR(Pd(i),Pfa,n);
  12.  
  13.     end
  14.    
  15.    
  16.     for i=1:numel(Pd)
  17.         E(i) = SNR1(i)/ (n*SNRn(i));
  18.        
  19.     end
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement