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

    %% Spacing Between UCA Elements
% Construct a 10-element UCA with a radius of 1.5 meters, and obtain the
% arc distance between any two adjacent elements. Then, obtain the chord
% distance.

% Copyright 2015 The MathWorks, Inc.

sArray = phased.UCA('NumElements',10,'Radius',1.5);
dist = getElementSpacing(sArray,'arc')
%%
dist = getElementSpacing(sArray,'chord')