How do I ask with specific sentences that the user insert certain inputs?

1 回表示 (過去 30 日間)
I have a function called EI2 and these input values:
  • VmGlu
  • VmChl
  • G_max_chl
  • G_max_glu
  • EChl
  • EGlu
  • tau_rise
  • tau_decay
  • tmax
I want the user to be able to call the function by typing EI2 only, and then a first sentence should appear: "What value do you want to insert as VmGlu? ". The user will type a number and then on to the second question.
How could I implement such a thing in an elegant way?
Thanks!

採用された回答

Sourabh Kondapaka
Sourabh Kondapaka 2021 年 2 月 8 日
編集済み: Sourabh Kondapaka 2021 年 2 月 8 日
@Stephen Cobeldick's suggestion for using "inputdlg()" is apt for your requirement.
You can also check out "listdlg()" to create a list selection dialog box.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by