format long
s=importdata('ss.txt')
str=upper(s(:))
str=[str{:}]
AZ='A':'Z'
long=sum(ismember(str,AZ));
for k=1:numel(AZ)
freq(k,1)=sum(ismember(str,AZ(k)));
end
bar(freq)
table(freq)
sum(freq)
for k=1:numel(AZ)
prob(k,1)=(sum(ismember(str,AZ(k))))/sum(freq);
end
bar(prob)
table(prob)
sum(prob)
