System object: phased.OmnidirectionalMicrophoneElement
Output response of microphone
RESP = step(H,FREQ,ANG)
Starting in R2016b, instead of using the
to perform the operation defined by the System
object™, you can
call the object with arguments, as if it were a function. For example,
= step(obj,x) and
y = obj(x) perform
The object performs an initialization the first time the
is executed. This initialization locks nontunable
properties (MATLAB) and input specifications, such as dimensions, complexity,
and data type of the input data. If you change a nontunable property
or an input specification, the System
object issues an error.
To change nontunable properties or inputs, you must first call the
to unlock the object.
Frequencies in hertz.
Directions in degrees.
Response of microphone.
Create an omnidirectional microphone. Find the microphone response at 200, 300, and 400 Hz for the incident angle 0° azimuth and 0° elevation. Then, plot the azimuth response of the microphone at three frequencies.
microphone = phased.OmnidirectionalMicrophoneElement(... 'FrequencyRange',[20 2e3]); fc = [200 300 400]; ang = [0;0]; resp = microphone(fc,ang);
Plot the response pattern. Response patterns for all three frequencies are the same.