System object: phased.OmnidirectionalMicrophoneElement
Package: phased

Output response of microphone




RESP = step(H,FREQ,ANG) returns the microphone's magnitude response, RESP, at frequencies specified in FREQ and directions specified in ANG.



Input Arguments


Microphone object.


Frequencies in hertz. FREQ is a row vector of length L.



If ANG is a 2-by-M matrix, each column of the matrix specifies the direction in the form [azimuth; elevation]. The azimuth angle must be between –180 and 180 degrees, inclusive. The elevation angle must be between –90 and 90 degrees, inclusive.

If ANG is a row vector of length M, each element specifies a direction's azimuth angle. In this case, the corresponding elevation angle is assumed to be 0.

Output Arguments


Response of microphone. RESP is an M-by-L matrix that contains the responses of the microphone element at the M angles specified in ANG and the L frequencies specified in FREQ.


Create an omnidirectional microphone. Find the microphone response at 200, 300, and 400 Hz for the incident angle [0;0]. Plot the azimuth response of the microphone.

h = phased.OmnidirectionalMicrophoneElement(...
    'FrequencyRange',[20 2e3]);
fc = [200 300 400];
ang = [0;0];
resp = step(h,fc,ang);

Was this topic helpful?