Code covered by the BSD License  

Highlights from
Symbol Probability in a message

image thumbnail

Symbol Probability in a message

by

 

This file deals with calculating symbol probability in a message

Test.m
% This script is used for ploting probabilities of various symbols
% appearing the text entered by the user.

a = input('Enter any text in single quote = ');
X = GetSymAPrioriProb(a);
n = length(X.sym);
sym = sort(X.sym)';
bar(X.prob);
set(gca,'Xtick',1:n,'XTickLabel',sym);
xlabel('Symbols present in text');
ylabel('Probabilities of symbols');

Contact us