anonymous
  • anonymous
can anyone help me with matlab, im trying to do a simple program that detects if the user input a vowel a consonant or a symbol using the switch-case but i dont understand it a lot, this is what a got so far charac = input('please give me a character: '); switch charac case {'a','e','i','o','u'} fprintf('%d is a vowel\n', charac) case {'q','w','r','t','y','p','s','d','f','g','h','j','k','l','m','z','x','c','v','b','n'} fprintf('%d is a consonant\n',charac) otherwise fprintf('%d is a symbol\n',charac) end but it dosent work. thanks in advance
MIT 6.00 Intro Computer Science (OCW)
katieb
  • katieb
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
Hi, Ferizv. You just need to replace the "input('please give me a character: ')" with "input('please give me a character: ', 's')". You can type in "doc input" in the command line to see the useage of the function "input". Good luck!
anonymous
  • anonymous
perfect thanks a lot
anonymous
  • anonymous
wow...we can talk with javescript here?

Looking for something else?

Not the answer you are looking for? Search for more explanations.