This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


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. Setting this value to false plots the spectrum without normalization.

Default: false


Character vector to use as figure title.

Default: ''


Plot units, specified as 'db', 'mag', or 'pow'.

Default: 'db'


expand all

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° in azimuth and 0° in elevation. The direction of the second signal is 17° in azimuth and 20° in elevation.

Create signals sampled at 8 kHz.

fc = 150e6;
fs = 8000;
t = (0:1/fs:1).';
x1 = cos(2*pi*t*300);
x2 = cos(2*pi*t*400);
array = phased.URA('Size',[5 10],'ElementSpacing',[1 0.6]);
array.Element.FrequencyRange = [100e6 300e6];
x = collectPlaneWave(array,[x1 x2],[-37 0;17 20]',fc);

Add complex noise.

noise = 0.1*(randn(size(x))+1i*randn(size(x)));

Create the MVDR DOA estimator for URA.

estimator = phased.MVDREstimator2D('SensorArray',array,...

Use the step method to the DOA estimates.

[~,doas] = estimator(x + noise)
doas = 

    17   -37
    20     0

Plot the spectrum.


Was this topic helpful?