www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ShowHeterogenousConformalArrayElementNormalsExample.m
%% Display Heterogenous Conformal Array Element Normals % Construct a 5-element acoustic cross array (UCA) composed of two % different types of cosine antenna elements. Use the Phased.HeterogeneousConformalArray % System object. Assume the operating frequency is 4 kHz. A typical value % for the speed of sound in seawater is 1500.0 m/s. Display the array % normal vectors. N = 5; fc = 4000; c = 1500.0; lam = c/fc; x = zeros(1,N); y = [-1,0,1,0,0]*lam/2; z = [0,0,0,-1,1]*lam/2; sCos1 = phased.CosineAntennaElement('CosinePower',1.5); sCos2 = phased.CosineAntennaElement('CosinePower',1.8); sHCA = phased.HeterogeneousConformalArray('ElementSet',{sCos1,sCos2},... 'ElementIndices',[1,2,2,2,1],... 'ElementPosition',[x;y;z],... 'ElementNormal',[[-20,-10,0,10,20];zeros(1,N)]); pos = getElementPosition(sHCA) normvec = getElementNormal(sHCA)