Main Content


Plot spatial spectrum


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 comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

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.

Introduced in R2012a