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

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 27 Mai 2019

0 Stimmen

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

3 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Import and Export finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by