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