Calculating symbol probability in a message will help how to source coding before actually transmitting it.
the time I created this code wasn't knowing about matlab inbuilt function named as tabulate
Well its little bit same in the sense it do returns three output as
1. Unique element present in input
2. there number of instance as frequency
3. at last instead of percentage it return probability where as tabulate gives percentage
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.