Filter löschen
Filter löschen

how can i do this?

2 Ansichten (letzte 30 Tage)
bob  shot
bob shot am 12 Dez. 2012
Write a program that reads a string of characters, say a piece of an article in a magazine, and determines how many times each vowel appears in the passage.
  6 Kommentare
Walter Roberson
Walter Roberson am 12 Dez. 2012

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 12 Dez. 2012
Here's a few hints for you, assuming you just type in the text from the article into your m-file:
s = 'abcdefGHIJKLmnopqRSTUVwxyz'
letterIndex = lower(s) - 'a'
% Now look up the hist() function
That should be enough to start you off.
  1 Kommentar
Walter Roberson
Walter Roberson am 12 Dez. 2012
Though it is admittedly tricky to figure out when "y" is a vowel and when it is a consonant.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by