필터 지우기
필터 지우기

Display a dialog box showing output of a program?

조회 수: 9 (최근 30일)
Richa Nayak
Richa Nayak 2013년 3월 9일
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 :)

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 9일
meanval = 123.45;
target = 19;
msgdlg( sprintf('The meanval for target #%d is %f', target, meanval));
  댓글 수: 3
Walter Roberson
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
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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by