Display a dialog box showing output of a program?
10 次查看(过去 30 天)
显示 更早的评论
I have obtained some output parameters in my image processing project. I want to display the dialog box showing these output points only for the user. Please give me the code for the same. Thank you :)
0 个评论
采纳的回答
Walter Roberson
2013-3-9
meanval = 123.45;
target = 19;
msgdlg( sprintf('The meanval for target #%d is %f', target, meanval));
3 个评论
Walter Roberson
2013-3-9
Ah, sorry, there are a series of dialog functions that work the same internally and this one is the only one whose name does not end in "dlg". The correct name is msgbox()
Image Analyst
2013-3-11
If you make it
uiwait(msgbox(yourMessage));
then the code will pause until the user clicks OK. Otherwise it will go blasting along, which you may not want. You may also have occasion to use helpdlg() and warndlg() instead of msgbox().
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!