![]() | Download Help (Windows Only) |
Owning Class: plots
Requires: MathScript RT Module
stem(y)
stem(x, y)
stem(x, y, attributes)
stem(x, y, 'filled', attributes)
Generates a stem plot. You can use stem plots to display an impulse response. stem plots y as stems originating in x. stem(y) plots the columns of y against the indexes of the columns. If x and y are real vectors, stem(x, y) plots y against x. stem(x, y, attributes) plots y against x using the specified attributes. stem(x, y, 'filled', attributes) plots y against x using the specified attributes and uses solid circles for the stem plot.
Name | Description | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x | Specifies a real vector or matrix you want to plot. | ||||||||||||||||||||||||||||||||||
y | Specifies a real vector or matrix you want to plot. | ||||||||||||||||||||||||||||||||||
attributes | Specifies valid plot attributes. Order the plot attributes by color, point style, and line style. For example, 'bo-' specifies that the plot is blue, marks points with circles, and uses solid lines. attributes is a string that accepts a combination of the following values.
|
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | No (always ignored) |
Supported on RT targets | No |
X = [0:0.1:1];
Y = X.*X;
stem(X, Y, 'r')
Helpful
Not Helpful