Home >Common Problem >How to use stem function in matlab

How to use stem function in matlab

藏色散人
藏色散人Original
2020-02-18 10:09:3425076browse

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')

How to use stem function in matlab

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn