Filter löschen
Filter löschen

Display a dialog box showing output of a program?

9 Ansichten (letzte 30 Tage)
Richa Nayak
Richa Nayak am 9 Mär. 2013
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 :)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Mär. 2013
meanval = 123.45;
target = 19;
msgdlg( sprintf('The meanval for target #%d is %f', target, meanval));
  3 Kommentare
Walter Roberson
Walter Roberson am 9 Mär. 2013
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
Image Analyst am 11 Mär. 2013
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().

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by