You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
numberOfStrings = countStrings(string_ori,varargin)
The function selects the unique string entries (n) from a cell array with m string entries and counts their number/replicates.
It returns a cell array with the name of the unique string entries in the first column and the number of corresponding replicates in the second column.
numberOfStrings = countStrings(string_ori,sort)
Optionally the output can be sorted according to number. sort = 1: returns sorted output variable
Cite As
Eva-Maria Weiss (2026). countStrings (https://nl.mathworks.com/matlabcentral/fileexchange/78640-countstrings), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (1.26 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
