| Simulink® | ![]() |
plot(Y) plot(X1,Y1,X2,Y2,...)
plot(Y) plots, for a vector Y, each element against its index. If Y is a matrix, it plots each column of the matrix as though it were a vector.
plot(X1,Y1,X2,Y2,...) plots the vectors Y1 against X1, Y2 against X2, and so on. Vector pairs must be the same length and the list must consist of an even number of vectors.
Plot commands can include NaN and inf values. When NaNs or infs are encountered, Simulink software stops drawing, then begins redrawing at the next numbers that are not NaN or inf.
The appearance of the plot on the icon depends on the value of the Drawing coordinates parameter. For more information, see Icon options in Using Simulink®.
Simulink software displays three question marks (? ? ?) in the block icon and issues warnings in these situations:
When the values for the parameters used in the drawing commands are not yet defined (for example, when the mask is first created and values have not yet been entered in the mask dialog box)
When a masked block parameter or drawing command is entered incorrectly
This command
plot([0 1 5], [0 0 4])
generates the plot that appears on the icon for the Ramp block, in the Sources library.
![]()
![]() | patch | port_label | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |