Dialog box with variable and button
5 次查看(过去 30 天)
显示 更早的评论
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
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
2013-2-14
x = 5;
questdlg(sprintf('You have %dlb of food?',x),'Hungry Yet?','Buy Food','Starve Longer','Buy Food')
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Thermal Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!