www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PlotResponse10ElementMicrophoneULAExample.m
%% Plot Response of 10-Element Microphone ULA % Construct a 10-element uniform linear array of omnidirectional % microphones spaced 3 mm apart. Then, plot the array response % at 100 Hz. % Copyright 2015 The MathWorks, Inc. hmic = phased.OmnidirectionalMicrophoneElement(... 'FrequencyRange',[20 20e3]); Nele = 10; hula = phased.ULA('NumElements',Nele,... 'ElementSpacing',3e-3,... 'Element',hmic); fc = 100; ang = [0; 0]; resp = step(hula,fc,ang); c = 340; plotResponse(hula,fc,c,'RespCut','Az','Format','Polar');