System object: phased.CustomMicrophoneElement
Output response of microphone
RESP = step(H,FREQ,ANG)
The object performs an initialization the first time the
Frequencies in hertz.
Directions in degrees.
Response of microphone.
Construct a custom cardioid microphone with an operating frequency of 500 Hz. Find the microphone response in the directions of [0;0] and [40;50].
h = phased.CustomMicrophoneElement; h.PolarPatternFrequencies = [500 1000]; h.PolarPattern = mag2db([... 0.5+0.5*cosd(h.PolarPatternAngles);... 0.6+0.4*cosd(h.PolarPatternAngles)]); fc = 500; ang = [0 0;40 50]'; resp = step(h,fc,ang);
The total response of a custom microphone element is a combination
of its frequency response and spatial response.
both responses using nearest neighbor interpolation and then multiplies
them to form the total response. When the
value is nonscalar, the object specifies multiple polar patterns.
In this case, the interpolation uses the polar pattern that is measured
closest to the specified frequency.