Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions