The input command problem

Is it possible to assign a letter to an input command, example A=input('please insert your name')

回答(1 个)

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.

类别

在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by