www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ResponseCardioidMicrophoneinUVSpaceExample.m
%% Response of Cardioid Microphone in U/V Space % Plot a $u$-cut of the response of a custom cardioid microphone % that is designed to operate in the frequency range 500-1000 Hz. % Copyright 2015 The MathWorks, Inc. %% % Create a cardioid microphone. h = phased.CustomMicrophoneElement; h.PolarPatternFrequencies = [500 1000]; h.PolarPattern = mag2db([... 0.5+0.5*cosd(h.PolarPatternAngles);... 0.6+0.4*cosd(h.PolarPatternAngles)]); %% % Plot the response. fc = 500; plotResponse(h,fc,'Format','UV');