You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Statement: strLetterCounter('string')
....where, 'string' is an input string containing alphabet or numbers.
Ex: string='aaaaaaaabbbbbbccd'
Statement: strLetterCounter(string)
Output: '8a,6b,2c,1d'
Note: This function is different from the Matlab function called 'unique' because it keeps the order in which letters occur in the string.
Cite As
Avinash Rude (2026). String Letter Counter Function (https://www.mathworks.com/matlabcentral/fileexchange/26295-string-letter-counter-function), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (1.35 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
