plot
Description
Examples
Plot Linear FM Pulse
Create and plot an upsweep linear FM pulse waveform.
waveform = phased.LinearFMWaveform('SweepBandwidth',1e5,'PulseWidth',1e-4); plot(waveform);
Plot Quadratic FM Pulse Waveform
Create and plot a quadratic FM pulse waveform. The pulse has a 10 MHz bandwidth and 50 sec duration. The pulse sample rate is 10 times the bandwidth.
BW = 10e6; T = 50e-6; waveform = phased.NonlinearFMWaveform( ... 'SampleRate',10*BW,'SweepBandwidth',BW, ... 'PulseWidth',T); plot(waveform,PlotType='complex')
Input Arguments
waveform
— Pulse waveform
waveform System object™
Pulse waveform, specified as a 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: plot(waveform,PlotType='complex',pulseidx=4)
PlotType
— plot type
'real'
(default) | 'imag'
| 'complex'
Specifies whether the function plots the real part, imaginary part, or both parts
of the waveform. Valid values are 'real'
,
'imag'
, and 'complex'
.
Example: 'complex'
Data Types: char
| string
pulseidx
— Index of pulse to plot
1
(default) | positive integer
Index of the pulse to plot. This value must be a scalar.
Example: 4
Data Types: double
FrequencyOffset
— Frequency offset
0.0 (default) | scalar
Frequency offset, specified as a scalar. Units are in Hz.
Example: -100
Data Types: double
FrequencyOffsetSource
— Frequency offset source
'Input port'
(default)
Frequency offset source, specified as a scalar. Units are in Hz.
Example: 'Input port'
Data Types: double
Output Arguments
hndl
— Line handle
scalar | positive valued column vector
Handle to the line or lines in the figure. For a PlotType
value
of 'complex'
, hndl
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 R2023a
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)