Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB Function Name: zombieSpeech Inputs 1. (char) The name of a text file, including the extension File Outputs: 1. A formatted text file containing information

image text in transcribedimage text in transcribed

MATLAB Function Name: zombieSpeech Inputs 1. (char) The name of a text file, including the extension File Outputs: 1. A formatted text file containing information about the speech Banned Functions: unique( Background The zombie apocalypse has finally reached Georgia Tech, and the zombies, having once been the highly intelligent students found at GT, have prepared speeches to warn the remaining students of their intentions. Lucky for you, you remembered to bring MATLAB with you to the bunker, so you can use it to help analyze the zombies' garbled speeches and determine how dire the situation is Function Description Write a MATLAB function to count the number of occurrences of each unique word found in a speech. The search should be case sensitive when looking for unique words, and any characters other than letters or spaces should be removed. The words should appear in descending order of how many times they appear. If there are ties, they should be sorted alphabetically. You should output your results in a text file, formatted in the following way: . The output text file should have the name _counted.txt. . The file should list the unique words in the following form: ' . Put each word on a new line Example speech.txt - 1| HGZMARnBGMNHA HGZMARnBGMNHA MNARHGHGMNHA bMZaARnRZ 2| hHRZM AR ZMHRnGBHAMZ ZMhaHG RAHRNM bMZaARnRZ zombieSpeech speech.txt') Continued

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

More Books

Students also viewed these Databases questions

Question

Additional Factors Affecting Group Communication?

Answered: 1 week ago