Skip to Main Content Skip to Search
Product Documentation

plot - Plot iddata or model objects

Syntax

plot(data)
plot(d1,...,dN)
plot(d1,PlotStyle1,...,dN,PlotStyleN)
plot(model)

Description

data is the output-input data to be graphed, given as an iddata object. A split plot is obtained with the outputs on top and the inputs at the bottom.

One plot for each I/O channel combination is produced. Pressing the Enter key advances the plot. Typing Ctrl+C aborts the plotting in an orderly fashion.

To plot a specific interval, use plot(data(200:300)). To plot specific input/output channels, use plot(data(:,ky,ku)), consistent with the subreferencing of iddata objects.

If data.intersample = 'zoh', the input is piecewise constant between sampling points, and it is then graphed accordingly.

To plot severaliddata sets d1,...,dN, use plot(d1,...,dN). I/O channels with the same experiment name, input name, and output name are always plotted in the same plot.

With PlotStyle, the color, line style, and marker of each data set can be specified

plot(d1,'y:*',d2,'b')

just as in the regular plot command.

model is an idnlarx, or idnlhw model.

See Also

iddata

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS