Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 19 Online
OpenStudy (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

OpenStudy (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!

OpenStudy (anonymous):

perfect thanks a lot

OpenStudy (anonymous):

wow...we can talk with javescript here?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!