Stem and leaf plot

버전 1.1.0.0 (2.1 KB) 작성자: Jered Wells
This is a simple utility for making stem and leaf plots output to the command window.
다운로드 수: 3.7K
업데이트 날짜: 2012/2/15

라이선스 보기

Plots stem and leaf plot to command window

stemleafplot(v)
stemleafplot(v,p)

STEMLEAFPLOT plots stem-leaf plots of the input V to the command window.
Leaf precision may be defined by the user. Note that inputs will be
rounded to the nearest leaf unit (http://en.wikipedia.org/wiki/Stemplot).

INPUT
V : Array of numerical inputs (NaN values are ignored)

OPTION
P : Leaf precision (defined as integer power of 10)
Stem precision (by default) is 10^(P+1).
P is automatically rounded at the beginning of the function.
Leaf and stem units are printed at the bottom of the graph.
Examples: P = -3 rounds V to the nearest 10^-3 = 0.001
P = 3 rounds V to the nearest 10^3 = 1000
[DEFAULT: P = 0]

OUTPUT
Command window output

EXAMPLES
% Stem-leaf plot of V with unit precision
V = 10.*randn(1,50);
stemleafplot(V)

% Stem-leaf plot of V with precision of 0.1
V = randn(1,50);
stemleafplot(V,-1)

% Stem-leaf plot of V with precision of 100
V = 5000.*randn(1,50);
stemleafplot(V,2)

Jered Wells
01/28/2011
jered [dot] wells [at] duke [dot] edu

v1.2 (02/14/2012)

인용 양식

Jered Wells (2024). Stem and leaf plot (https://www.mathworks.com/matlabcentral/fileexchange/30217-stem-and-leaf-plot), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Stem Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Cleaned up code and help file
Included H1 line
Included examples
Added parameter to generate plot with user-defined leaf precision

1.0.0.0