Question: Write program on MATLAB called vowel_count.m which reads lines from a text file, counting the vowels (a,e,i,o,u) in the file. Print out the total number
Write program on MATLAB called vowel_count.m which reads lines from a text file, counting the vowels (a,e,i,o,u) in the file. Print out the total number of vowels that you find in a file as a suitable formatted message. Examine your program with the sample file mentioned below. The output should look like this:
This file contains 30 vowels.
Sample file is:
1: Mary had a little lamb,
2: it's fleece was white as snow.
3:
4: And everywhere that Mary went,
5: the lamb was sure to go.This file has 5 lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
