(translator=pacific, ChineseSource=pacific-20020720-8\stem.html, EnglishSource=c:\matlabr12\help\techdoc\ref\stem.html)
MATLAB Function Reference    
stem

Plot discrete sequence data

Syntax

Description

產生二維的 stem plot,並從 x 軸上垂直延伸到資料所指定的值。而線段的終點為一圓(預設值)或是其他標記符號(marker),終點的 y-座標值為此資料的數值。

stem(Y) 畫出 Y 的 stem plot。而 x-座標間隔相等並由 MATLAB 自動產生。若 Y 是矩陣格式, stem 會在同一個 x 座標上畫出同個橫列的所有元素。

stem(X,Y) 畫出 XY 直行的 stem 圖形。 XY 必須是向量格式或同樣大小的矩陣。另外, X 可以是行向量或列向量,而 Y 矩陣的列數量為 length(X)

stem(...,'fill') 決定是否要在 stem 的尾端塗上顏色。

stem(...,LineSpec) 指定 stem plot 的線段格式、標記符號(marker symbol)和顏色。詳情可參閱 LineSpec

h = stem(...) 回傳對 line 物件的處理。

Examples

根據10個隨機產生的數來畫出其 stem plot。

See Also

bar, plot, stairs, stem3


 std stem3