frequency of letters in English message

4 visualizaciones (últimos 30 días)
samah samir
samah samir el 13 de Sept. de 2021
Respondida: Star Strider el 13 de Sept. de 2021
i have a massage such as plain= 'my name is samah samir and i am engineer';
1- i want to compute the frecuancy of each letter in this message and compute this relation the sum of the diffrance between the static frequancy in english language and the frequancy of each letter in your plain .

Respuesta aceptada

Star Strider
Star Strider el 13 de Sept. de 2021
One approach —
plain= 'my name is samah samir and i am engineer';
ltrs = double(plain);
ltrs = ltrs(ltrs>32)-double('a')+1;
figure
histogram(ltrs, 26)
xticks(1:26)
xticklabels(compose('%c','a':'z'))
Experiment to get diferent results.
.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by