Advertisement
makispaiktis

Phased Arrays - URA (phased_URA_patterns.m)

Jan 6th, 2023 (edited)
1,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.70 KB | None | 0 0
  1. clear all
  2. close all
  3. clc
  4.  
  5. % Antennas
  6. isot = phased.IsotropicAntennaElement;
  7. array = phased.URA;
  8. array.Element = isot;
  9. array.Size = [8 8];
  10. freq = 300e6;
  11.  
  12. % Plots
  13. figure('Name', '3D Radiation Pattern');
  14. pattern(array, freq);
  15. figure('Name', '2D Azimuth Pattern (Elevation = 0, z = 0, Plane xy)');
  16. patternAzimuth(array, freq);
  17. figure('Name', '2D Elevation Pattern (Azimuth = 0, y = 0, Plane xz)');
  18. patternElevation(array, freq);
  19.  
  20. figure('Name', 'Array Factor');
  21. c = physconst('LightSpeed');
  22. AZ = -180:180;
  23. EL = 0;
  24. pattern(array, freq, AZ, EL, 'PropagationSpeed', c,...
  25. 'CoordinateSystem','rectangular', 'Type','powerdb','Normalize',true);
  26.  
  27. max_directivity = max(directivity(array, freq, AZ))
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement