Dialog box with variable and button

5 ビュー (過去 30 日間)
UCL
UCL 2013 年 2 月 14 日
I would like to create a dialog box which will have variables in it and a button: for example:
Today you have : 5 pounds (5 is the variable) Buy food? (Buy food is the button)
Thank you in advance
  1 件のコメント
Jan
Jan 2013 年 2 月 14 日
What is your question? What have you tried so far, which problems occurred and which kind of help do you need?

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

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 2 月 14 日
x = 5;
questdlg(sprintf('You have %dlb of food?',x),'Hungry Yet?','Buy Food','Starve Longer','Buy Food')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeThermal Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by