word input codes in matlab
Mostrar comentarios más antiguos
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 comentarios
Sriram Tadavarty
el 19 de Mzo. de 2020
Hi Charlotte, is this a homework question? Did you try some code and struck somewhere?
Charlotte Reed
el 19 de Mzo. de 2020
Sriram Tadavarty
el 19 de Mzo. de 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
el 19 de Mzo. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Variables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
