plot
(Not recommended) Plot input and output channels of iddata
object
plot is not recommended. Use idplot instead to plot input and output channels of timetables, comma-separated
matrix pairs, and iddata objects. For more information, see Version History.
Syntax
Description
plot( plots the input and output
channels of an data)iddata object. The function plots the outputs
on the top axes and the inputs on the bottom axes.
For time-domain data, the input and output signals are plotted as a function of time. Depending on the
InterSampleproperty of theiddataobject, the input signals are plotted as linearly interpolated curves or as staircase plots. For example, ifdata.InterSample = 'zoh', the input is piecewise constant between sampling points, and is plotted accordingly.For frequency-domain data, the magnitude and phase of each input and output signal are plotted over the available frequency span.
To plot a subset of the data, use subreferencing:
plot(data(201:300))plots the samples 201 to 300 in the data setdata.plot(data(201:300,'Altitude',{'Angle_of_attack','Speed'}))plots the specified samples of the output namedAltitudeand the inputs namedAngle_of_attackandSpeed.plot(data(:,[3 4],[3:7]))plots all samples of output channel numbers 3 and 4 and input numbers 3 through 7.
plot(data1,...,dataN) plots multiple datasets. The number of plot
axes is determined by the number of unique input and output names among all the
datasets.
plot(data1,LineSpec1...,dataN,LineSpecN) specifies the line
style, marker type, and color for each dataset. You can specify options for only some data
sets. For example, plot(data1,data2,'k',data3) specifies black as the
plot color for data2.
plot( plots into
the axes with the handle axes_handle,___)axes_handle instead of into the current axes
(gca). Use this syntax with any of the input argument combinations
in the previous syntaxes.
plot(___, specifies
the plot options.plotoptions)
Examples
Input Arguments
Output Arguments
Tips
Right-clicking the plot opens the context menu, where you can access the following options and plot controls.
| Option | Description and Suboptions |
|---|---|
| Datasets | View the datasets used in the plot. |
| Characteristics | Peak Value — View the peak value of the data. This value is useful for transient data. Mean Value — View the mean value of the data. This value is useful for steady-state data. |
| Orientation | For data with one input and one output channel:
For data with more than one input or output channel:
|
| I/O Grouping | Group input and output channels on the plot. Use this option with datasets with more than one input or output channel. |
| I/O Selector | Select a subset of the input and output channels to plot. By default, all input and output channels are plotted. Use this option with data sets with more than one input or output channel. |
| Grid | Add grids to your plot. |
| Normalize | Normalize the y-scale of all data in the plot. |
| Properties | Open the Property Editor dialog box, where you can customize plot attributes. |
Version History
Introduced in R2014aSee Also
iddata | idplot | dataPlotOptions | identpref