个性化阅读
专注于IT技术分析

MATLAB函数stem()

二维词干图将数据显示为沿x轴从基线延伸的线。 y位置代表数据值的圆(默认值)或另一个标记终止每个词干。

句法

stem(Y) // It plots the data sequence Y as stems that extends from equally spaced and automatically created values along the x-axis. When Y is a matrix, stem plot, all items in a row against the same x value.
stem(X, Y) // It plot X versus the column of Y. X and Y are vectors or matrices of a similar size. X can be the row or a column vector, and Y is a matrix with length(X) rows.
stem(..., 'fill') // It specifies whether to color the circle at the end of the stem.
stem(..., LineSpec) // It specifies the line style, marker symbol, and color. 
h = stem(...) // It returns a vector of Stem objects in h.

例子

f=e^-t/5 sint, 0≤t≤2π
t=linspace (0, 2*pi, 200);
f=exp (-.2*t).*sin(t);
stem(t, f)

输出

MATLAB stem()

赞(0)
未经允许不得转载:srcmini » MATLAB函数stem()

评论 抢沙发

评论前必须登录!