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

回答 (1 件)

Star Strider
Star Strider 2020 年 9 月 23 日

0 投票

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 についてさらに検索

質問済み:

2020 年 9 月 23 日

回答済み:

2020 年 9 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by