Documentation

Microphone ULA Array

This example shows how to construct and visualize a four-element ULA with custom cardioid microphone elements. Specify the polar pattern frequencies as 500 and 1000 Hz.

Create a microphone element with a cardioid response pattern. Use the default values of the FrequencyVector property.

freq = [500 1000];
sMic = phased.CustomMicrophoneElement(...
    'PolarPatternFrequencies',freq);
sMic.PolarPattern= mag2db([...
    0.5+0.5*cosd(sMic.PolarPatternAngles);...
    0.6+0.4*cosd(sMic.PolarPatternAngles)]);

Plot the polar pattern of the microphone at 0.5 kHz and 1 kHz.

pattern(sMic,freq,[-180:180],0,'CoordinateSystem','polar','Type','powerdb',...
    'Normalize',true);

Construct a ULA of custom microphone elements.

sULA = phased.ULA('NumElements',4,'ElementSpacing',0.5,...
    'Element',sMic);

Plot the response of the array at 0.5 kHz and 1 kHz.

pattern(sULA,freq,[-180:180],0,'CoordinateSystem','polar','Type','powerdb',...
    'Normalize',true,'PropagationSpeed',340.0);

Was this topic helpful?