www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ConformalArrayElementNormalsExample.m
%% Conformal Array Element Normals % Construct a 5-element acoustic cross array (UCA) using the % ConformalArray 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; sMic = phased.OmnidirectionalMicrophoneElement(... 'FrequencyRange',[0,10000],'BackBaffled',true); sConformArray = phased.ConformalArray('Element',sMic,... 'ElementPosition',[x;y;z],... 'ElementNormal',[45*ones(1,N);zeros(1,N)]); pos = getElementPosition(sConformArray) normvec = getElementNormal(sConformArray)