So how do you make MAtlab into a responding program?
1 次查看(过去 30 天)
显示 更早的评论
I Want to make a program that can respond back to you with words. I found one way but its annoying. I need to put (' ') Around the words I type and the it response but I just want to type the words and it give off a correct responses. Any good examples to make this work?
0 个评论
采纳的回答
Walter Roberson
2013-9-15
Use input with the 's' option to request the responses
din = input('What did you have for dinner?', 's');
7 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!