www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ElementPositionsHeterogeneousConformalArrayExample.m

    %% Element Positions of Heterogeneous Conformal Array
% 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));