MATLAB Answers

display value on GUi

13 views (last 30 days)
Syakira Akmal
Syakira Akmal on 24 May 2017
Commented: Jan on 24 May 2017
Hai, I have a GUI that contain calculation. After done calculation, the answer I want to display it. Can you help me?

  1 Comment

Jan on 24 May 2017
"a GUI that contain calculation" is not clear. How is the result of the calculation available? Is the calculation started inside a callback? How do you want to display the results - as text or diagram?

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 24 May 2017
msgbox( sprintf('The answer was: %g', YourAnswerVariable) );


Sign in to comment.



Community Treasure Hunt

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

Start Hunting!

Translated by