Hi all. I'm very new to matlab programming. I need to ask data to the user. How can I do?

2 件のコメント

KSSV
KSSV 2019 年 5 月 27 日
What data?
Martha Spadaccino
Martha Spadaccino 2019 年 5 月 27 日
Words. E.g. "What words do you prefere between house, work, chapel, laptop, skirt......?"

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2019 年 5 月 27 日

0 投票

Read about input
prompt = 'Enter a value: ';
x = input(prompt)

3 件のコメント

Martha Spadaccino
Martha Spadaccino 2019 年 5 月 27 日
Thank you so much! But it doesn't work with words..
KSSV
KSSV 2019 年 5 月 27 日
prompt = 'Enter a string: ','s';
x = input(prompt)
Martha Spadaccino
Martha Spadaccino 2019 年 5 月 27 日
Thank you so much!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Data Import and Export についてさらに検索

質問済み:

2019 年 5 月 27 日

コメント済み:

2019 年 5 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by