String Letter Counter Function
by Avinash Rude
07 Jan 2010
(Updated 07 Jan 2010)
This function returns comma separated unique letter counts in an input string, keeping the order.
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 07 Jan 2010 |
Fixed printing of a local variable. |
|
Contact us at files@mathworks.com