The input command problem

3 views (last 30 days)
David Mboko
David Mboko on 23 Sep 2020
Answered: Star Strider on 23 Sep 2020
Is it possible to assign a letter to an input command, example A=input('please insert your name')

Answers (1)

Star Strider
Star Strider on 23 Sep 2020
Yes!
Although for a string input, use the 's' option:
A=input('please insert your name','s')
For what it’s worth, I prefer the inputdlg function to input.

Categories

Find more on Interactive Control and Callbacks 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!