Main Content

getElementPosition

System object: phased.HeterogeneousConformalArray
Namespace: phased

Positions of array elements

Syntax

pos = getElementPosition(sHCA)
pos = getElementPosition(sHCA,elemidx)

Description

pos = getElementPosition(sHCA) returns the element positions of the HeterogeneousConformalArray System object™, sHCA. POS is an 3-by-N matrix where N is the number of elements in H. Each column of pos defines the position of an element in the local coordinate system, in meters, in the form [x;y;z].

For details regarding the local coordinate system of the conformal or heterogeneous conformal array, enter phased.ConformalArray.coordinateSystemInfo.

pos = getElementPosition(sHCA,elemidx) returns the positions of the elements that are specified in the element index vector elemidx.

Examples

expand all

Construct an 8-element heterogeneous conformal array with oriented short-dipole antenna elements. Then, obtain the positions of the first four elements.

sElement1 = phased.ShortDipoleAntennaElement(...
    'FrequencyRange',[100e6 1e9],...
    'AxisDirection','Z');
sElement2 = phased.ShortDipoleAntennaElement(...
    'FrequencyRange',[100e6 1e9],...
    'AxisDirection','Y');
N = 8; azang = (0:N-1)*360/N-180;
sArray = phased.HeterogeneousConformalArray(...
    'ElementPosition',...
    [cosd(azang);sind(azang);zeros(1,N)],...
    'ElementNormal',[azang;zeros(1,N)],...
    'ElementSet',{sElement1,sElement2},...
    'ElementIndices',[1 1 1 1 2 2 2 2]);
pos = getElementPosition(sArray);
disp(pos(:,1:4));
   -1.0000   -0.7071         0    0.7071
         0   -0.7071   -1.0000   -0.7071
         0         0         0         0