# stem

## Purpose

Stem plot for discrete sequence data.

## Synopsis

    stem(y)
    stem(x,y)
    stem(y,'linetype')
    stem(x,y,'linetype')

## Description

`stem(y)` plots the data sequence `y` as stems from the x-axis. Each stem is terminated with a circle whose `y`-position represents the data value.

`stem(x,y)` plots the data sequence `y` at the values specified in `x`.

`stem(y,'linetype')` and `stem(x,y,'linetype')` specify a line type for the stems of the plot. See `plot` for valid `linetypes`.

## Examples

    y = randn(50,1);
    stem(y)

## See Also

    bar, plot, stairs

(c) Copyright 1994 by The MathWorks, Inc.