Plots stem and leaf plot to command window
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).
V : Array of numerical inputs (NaN values are ignored)
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]
Command window output
% Stem-leaf plot of V with unit precision
V = 10.*randn(1,50);
% Stem-leaf plot of V with precision of 0.1
V = randn(1,50);
% Stem-leaf plot of V with precision of 100
V = 5000.*randn(1,50);
jered [dot] wells [at] duke [dot] edu
Jered Wells (2023). Stem and leaf plot (https://www.mathworks.com/matlabcentral/fileexchange/30217-stem-and-leaf-plot), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
플랫폼 호환성Windows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!