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

    %% Geometry and Indices of Heterogeneous ULA Elements
% Display the geometry of a 5-element heterogeneous ULA of cosine
% antenna elements, showing the indices
% for the first three elements.

% Copyright 2015 The MathWorks, Inc.


%%
sElement1 = phased.CosineAntennaElement('CosinePower',1.5);
sElement2 = phased.CosineAntennaElement('CosinePower',1.8);
sArray = phased.HeterogeneousULA(...
    'ElementSet',{sElement1,sElement2},...
    'ElementIndices',[1 2 2 2 1]);
viewArray(sArray,'ShowIndex',[1:3])