word input codes in matlab
古いコメントを表示
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 件のコメント
Sriram Tadavarty
2020 年 3 月 19 日
Hi Charlotte, is this a homework question? Did you try some code and struck somewhere?
Charlotte Reed
2020 年 3 月 19 日
Sriram Tadavarty
2020 年 3 月 19 日
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
2020 年 3 月 19 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
