Input is a cell string array and the Histogram will be plotted according to the different string in the array.
Example:
CELL={'a' ; 'a' ; 'b' ;'b' ; 'b' ; 'c' ;'c' ;'c'}
[n cellout]=cellhist(CELL)
Notice: you will need to download rotateticklabel.m from the file exchange.
引用格式
Tal Shir (2024). cellhist (https://www.mathworks.com/matlabcentral/fileexchange/23933-cellhist), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2008b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots >
- MATLAB > Language Fundamentals > Data Types > Characters and Strings >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
在 Help Center 和 MATLAB Answers 中查找有关 Data Distribution Plots 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!