stem
Stem plot — vertical lines from the x-axis to each data point.
Syntax
Section titled “Syntax”h = stem(y, ...)h = stem(x, y, ...)Description
Section titled “Description”Plots data as discrete impulses (vertical stems from the baseline to each point). Common for signals and discrete sequences.
Example
Section titled “Example”stem(0:10, sin(0:10))