Advertisement
stiansjogren

oving2 radar

Sep 23rd, 2016
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.74 KB | None | 0 0
  1. % Exercise 2: Radar
  2. % Name: Henning Schei
  3.  
  4. % Antenna param
  5. f = 9400e6;
  6. v_beamw = 15; %deg
  7. G  = 33; %dB
  8. azimuth_rr = 20; %rpm
  9.  
  10. P_t = 25e3; %W
  11. tau = .15e-6;
  12. prr = 4000; %Hz
  13. F_r = 5; %dB
  14. sigma = 10; % m^2
  15. system_loss = 12; %dB
  16. R_bw = 15e6;
  17.  
  18. %Avg false alarm time
  19. avg_f_t_time = 4*60*60; %s
  20. Pfa = power(R_bw*avg_f_t_time,-1);
  21. n = 26;
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. Pd = 0.4:0.01:0.99;
  29. SNR_dB = zeros(1,numel(Pd));
  30. SNR = zeros(1,numel(Pd));
  31. for i =1:numel(Pd)
  32.     SNR_dB(i) = calcSNR(Pd(i), Pfa,n);
  33.     SNR(i) = power(10,SNR_dB(i)/10);
  34. end
  35.  
  36. R_max = zeros(1,numel(Pd));
  37. for i = 1:numel(Pd)
  38.     R_max(i)= (P_t * power(10,(G/10) * 1*sigma)/ (power(4*pi,2) *1.3e-23*R_bw*10^(F_r/10)*SNR(i) ));
  39. end
  40.  
  41.  
  42.  
  43.  
  44. E = efficiencyFactor(Pd,Pfa,26);
  45.  
  46.  
  47. n = 26;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement