ask the user questions without a menu

1 回表示 (過去 30 日間)
Jose Grimaldo
Jose Grimaldo 2020 年 2 月 17 日
コメント済み: Adam Danz 2020 年 2 月 17 日
How can i asked the user a set of questions without a menu? They are "Yes" or "No" answers.
  2 件のコメント
Rik
Rik 2020 年 2 月 17 日
How do you want to display these questions and how do you want the user to enter the answers? It can probably be implemented, but without a good description your question is hard to answer well.
Adam Danz
Adam Danz 2020 年 2 月 17 日
You could use an inputdlg where the user would have to type a response for each question.
Pro: easy to build the dialog box
Con: The user can type anything they want which can be tricky to deal with when you're looking for binary responses.
You could use a series of questdlg boxes where each question is asked individually, one after the other, and the user must click yes or no.
Pro: easy to build the dialogs; responses are constrained to a binary response.
Con: There will be 4 different windows that come up one at a time, for 4 questions.
You could build your own dialog using uicontrol that all 4 questions on the same dialog with their own responses.
Pro: The dialog can look any way you want it to and can host all 4 questions.
Con: More work on the backend: you've got to build the dialog and callback functions.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by