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?

采纳的回答

Walter Roberson
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 个)

Rainaire Hansford
Rainaire Hansford 2013-9-20
How do I make if and else statement equal to the words that I type.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by