Main Content

plot

Plot stepped FM pulse waveform

Description

plot(steppedFMWaveform) plots the real part of the waveform specified by steppedFMWaveform.

plot(steppedFMWaveform,Name=Value) plots the waveform with additional options specified by one or more name-value arguments.

plot(steppedFMWaveform,Name=Value,LineSpec) specifies the same line color, line style, or marker options as are available in the MATLAB® plot function.

h = plot(___) returns the line handle in the figure for any of the input argument combinations in the previous syntaxes.

Examples

collapse all

Create and plot a stepped frequency pulse waveform.

 waveform = phased.SteppedFMWaveform(NumSteps=3);
 plot(waveform);

Figure contains an axes object. The axes object with title Stepped FM pulse waveform: real part, pulse 1, xlabel Time (s), ylabel Amplitude (v) contains an object of type line.

Input Arguments

collapse all

Stepped FM pulse waveform, specified as a phased.SteppedFMWaveform object.

Appearance of the plot, specified as a string or character vector. This value specifies the same line color, style, or marker options as are available in the MATLAB plot function. If you specify a PlotType value of "complex", then LineSpec applies to both the real and imaginary subplots.

Name-Value Arguments

collapse all

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.

Example: PlotType="imag" sets the plot type to "imag".

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

Plot type, specified as a "real", "imag", and "complex". This value specifies whether the function plots the real part, imaginary part, or both parts of the waveform.

Index of the pulse to plot, specified as an integer.

Data Types: double

Frequency offset, specified as specified as a scalar

Dependencies

To enable this argument, set the FrequencyOffsetSource property to "Input port". Units are in Hz.

Data Types: double

Output Arguments

collapse all

Reference to the plotted line, returned as a handle to the line or lines in the figure. For a PlotType value of "complex", h is a column vector. The first and second elements of this vector are the handles to the lines in the real and imaginary subplots, respectively.

Version History

Introduced in R2011a