word input codes in matlab
Ältere Kommentare anzeigen
how to write a function that receives a word as input and returns a pig Latin translation of the word. Both the input word and the pig Latin word are character arrays. The pig Latin translation involves first determining if the input word begins with a vowel (a, e, i, o, or u). If so, append 'way' to form the pig Latin translation. If the input word does not begin with a vowel, then form the pig Latin translation by moving the first letter to the end of the word and then appending 'ay'. I also want to include a help option, so when the user types in "help" they get my pre written message
5 Kommentare
Sriram Tadavarty
am 19 Mär. 2020
Hi Charlotte, is this a homework question? Did you try some code and struck somewhere?
Charlotte Reed
am 19 Mär. 2020
Sriram Tadavarty
am 19 Mär. 2020
Sure. That's good. Show till what you tried and that can be helped when struck. For some insights to get started look at this page https://www.mathworks.com/help/matlab/functions.html
Charlotte Reed
am 19 Mär. 2020
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Variables finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
