Question: Using Matlab app designer write a program that loads in a text file of any size and then prints the frequency(that should be the percentage)

Using Matlab app designer write a program that loads in a text file of any size and then prints the frequency(that should be the percentage) of each character (a..z). All of the characters should be made lowercase for counting purposes. Ignore punctuation, spaces,... Output should be sorted in decreasing frequency(percentage instead of alphabetically) order (e, t, a, o, etc....)For example the text file could possibly say "i went to the park" the program should be able to count the amount of "a" "e" "w" "r" "k" etc.. in that sentence and give each of those letters a percentage and if that sentence does not use a certain letter than the percentage is 0%. The program should be designed to take a text file of any length and then count the amount of letters giving a percentage of how many times that letter is used in that text file. Like the made up example down below.

Text file input to the program says: I went to the park today

't' - 40%

'a' - 20%

'e' - 10%

'o' - 10% ....

'w' - 2%

'z' - 0%

If possible could you please show how and the steps on completing the code. with a screenshot of the work that was used in the app designer feature for matlab.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!