System object: phased.MVDREstimator2D
Package: phased

Plot spatial spectrum


h = plotSpectrum(___)


plotSpectrum(H) plots the spatial spectrum resulting from the last call of the step method.

plotSpectrum(H,Name,Value) plots the spatial spectrum with additional options specified by one or more Name,Value pair arguments.

h = plotSpectrum(___) returns the line handle in the figure.

Input Arguments


Spatial spectrum estimator object.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.


Set this value to true to plot the normalized spectrum. Set this value to false to plot the spectrum without normalizing it.

Default: false


String to use as title of figure.

Default: Empty string


The unit of the plot. Valid values are 'db', 'mag', and 'pow'.

Default: 'db'


Estimate the DOAs of two signals received by a 50-element URA with a rectangular lattice. The antenna operating frequency is 150 MHz. The actual direction of the first signal is –37 degrees in azimuth and 0 degrees in elevation. The direction of the second signal is 17 degrees in azimuth and 20 degrees in elevation.

fs = 8000; t = (0:1/fs:1).';
x1 = cos(2*pi*t*300); x2 = cos(2*pi*t*400);
ha = phased.URA('Size',[5 10],'ElementSpacing',[1 0.6]);
ha.Element.FrequencyRange = [100e6 300e6];
fc = 150e6;
x = collectPlaneWave(ha,[x1 x2],[-37 0;17 20]',fc);
% additive noise
noise = 0.1*(randn(size(x))+1i*randn(size(x)));
% construct MVDR DOA estimator for URA
hdoa = phased.MVDREstimator2D('SensorArray',ha,...
% use the step method to obtain the output and DOA estimates
[~,doas] = step(hdoa,x+noise);

Was this topic helpful?