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.
Cite As
Tal Shir (2024). cellhist (https://www.mathworks.com/matlabcentral/fileexchange/23933-cellhist), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- 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 >
Find more on Data Distribution Plots in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.