Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Matlab. Function Name: kingsSpeech Inputs 1. (char) Filename of your speech, with extension Outputs: 1. (double) Number of filler words found (char) A string
Use Matlab. Function Name: kingsSpeech Inputs 1. (char) Filename of your speech, with extension Outputs: 1. (double) Number of filler words found (char) A string about the quality of the speech 2 Background: You are practicing giving your big speech in a couple of days, when your friends point out that you say "uh, "um", and "like" a lot. To help reduce the number of filler words you use while speaking, you decide to record and transcribe these practice runs. Function Description: Write a MATLAB function that takes in the name of your speech to analyze. For the first output, count all the occurrences of uh' un", and '1ike. For the second output, compare the number of occurrences of 'uh', um'. and 1ike' to the total number of words in the speech and output a phrase based off of the following criteria: %Of the words that are "uh.."un..or.like 296 5% 5% Function output Wow what a good speech! Not bad, keep practicing.' Needs some work." Example If ex.txt file contained the following 1 This is uh an example 2 Speeches like this are like, uh, bad >> [count, out] kingsspeech(.ex.txt.) count 4 outNeeds some work." Notes: * When checking for . uh''un' and . like." case does not matter Do not count or the word 'uh, um' or like' they appear inside another word (e.g likes' does not count) Words will be separated by spaces, but you should ignore all punctuation in each line
Use Matlab.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started