Code covered by the BSD License  

Highlights from
Phased Array Design Toolbox v2.4.2

image thumbnail

Phased Array Design Toolbox v2.4.2

by

 

10 Feb 2009 (Updated )

A toolbox allowing rapid definition and evaluation of 2D and 3D phased array antennas.

[geom,gpflg]=apcirc_geom()
function [geom,gpflg]=apcirc_geom()
% Geometry definition for circular aperture element
%
% Usage: geom=apcirc_geom()

global apcirc_config;
  
dia=apcirc_config(1,1);

radius=dia/2;
segno=0;
geom(1:3,1)=[radius;0;0];           % Circle start on X-axis

for seg=1:24                        % Use 24 line segments 
  segno=segno+1;                    % Segment number index
  rotang=(seg/24)*2*pi;             % Angle round helix
  xh=radius*cos(rotang);            % X-coord of segment node
  yh=radius*sin(rotang);            % Y-coord of segment node
  zh=0;                             % Z-coord of segment node
  geom(1:3,segno+1)=[xh;yh;zh];     % Load coordinate array 
end
 

gpflg=1;

Contact us