Main Content

plotSpectrum

Plot spatial spectrum

Description

plotSpectrum(estimator) plots the spatial spectrum resulting from the most recent execution of the estimator object.

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

hl = plotSpectrum(___) returns the line handle of the spectrum plot in the figure.

Input Arguments

collapse all

Spectrum estimator, specified as a Phased Array System Toolbox™ System object.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'NormalizedResponse',true,'Unit','pow'

Option to enable plotting of normalized response, specified as false or true. Set this value to true to plot the normalized spectrum. Set this value to false to plot the spectrum without normalization.

Data Types: logical

Title of plot figure, specified as a character vector.

Example: 'Beamscan Spectrum'

Data Types: char

Plot units, specified as

  • 'db' – decibels

  • 'mag' – magnitude

  • 'pow' – power

.

Output Arguments

collapse all

Plot line, returned as a handle.

Version History

Introduced in R2012a