How ask data to the user?

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

2 Commenti

KSSV
KSSV il 27 Mag 2019
What data?
Words. E.g. "What words do you prefere between house, work, chapel, laptop, skirt......?"

Accedi per commentare.

Risposte (1)

KSSV
KSSV il 27 Mag 2019
Read about input
prompt = 'Enter a value: ';
x = input(prompt)

3 Commenti

Thank you so much! But it doesn't work with words..
prompt = 'Enter a string: ','s';
x = input(prompt)
Thank you so much!

Accedi per commentare.

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by