How ask data to the user?
Show older comments
Hi all. I'm very new to matlab programming. I need to ask data to the user. How can I do?
Answers (1)
KSSV
on 27 May 2019
Read about input
prompt = 'Enter a value: ';
x = input(prompt)
3 Comments
Martha Spadaccino
on 27 May 2019
KSSV
on 27 May 2019
prompt = 'Enter a string: ','s';
x = input(prompt)
Martha Spadaccino
on 27 May 2019
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!