countStrings
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
Zitieren als
Eva-Maria Weiss (2024). countStrings (https://www.mathworks.com/matlabcentral/fileexchange/78640-countstrings), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.1 | fix assigning bug |
||
1.0.0 |