Home >Common Problem >How to use stem function in matlab
Stem function usage in matlab
stem(Y) Convert the data sequence Y from the x-axis to the data value according to Drawn in a stem-like form, terminating in a circle. If Y is a matrix, draw each column in a separated manner.
stem(X,Y) draws the data sequence Y at the specified point of X.
stem(...,'filled ') Draw the stem in a solid manner.
stem(...,'LINESPEC') Draws the stem and its mark according to the specified line type
Routine:
a = rand(10,1); figure; stem(a,'filled')
For more programming-related content, please pay attention to the Programming Tutorial column on the php Chinese website!
The above is the detailed content of How to use stem function in matlab. For more information, please follow other related articles on the PHP Chinese website!