plot
Draw 2-D line plot of DataMatrix object
Syntax
plot(DMObj1)
plot(DMObj1, DMObj2)
plot(..., LineSpec)
Arguments
DMObj1, DMObj2 | DataMatrix objects, such as created by Note If both |
LineSpec | Character vector specifying a line style, marker symbol, and color of the plotted lines. For more information on these specifiers, see Line Specifications. |
Description
plot( plots
the columns of a DataMatrix object DMObj1)DMObj1 versus
their index.
plot( plots
the data from DMObj1, DMObj2)DMObj1 and DMObj2,
two DataMatrix objects, or one DataMatrix object and one MATLAB numeric
array.
If
DMObj1andDMObj2are both vectors, they must have the same number of elements, andplotplots one vector versus the other vector, creating a single line.If one is a vector and one a scalar,
plotplots discrete points vertically or horizontally, at the scalar value.If one is a vector and one a matrix, the number of elements in the vector must equal either the number of rows or the number of columns in the matrix, and
plotplots the vector versus each row or column in the matrix.If both are matrices, they must have the same size (number of rows and columns), and
plotplots each column inDMObj1versus the corresponding column inDMObj2.
plot(..., plots
all lines as defined by LineSpec)LineSpec, a character
vector specifying a line style, marker symbol, and/or color.
More About
Version History
Introduced in R2008b