How to display GUI output into message box ?
3 views (last 30 days)
Show older comments
I have a lot of output parameter to display. I cannot use static text to display my output because it might need a lot of space to be display in my GUI. That is why I need it to be display into message box. Somebody please help me. Thank you :)
0 Comments
Answers (1)
Geoff Hayes
on 6 Dec 2015
Ikhwan - how many output parameters is a lot? You can use the msgbox to create a message dialog box. Something like the following may be appropriate for your
msg = '';
msg = sprintf('A=%d\nB=%d\nC=%d\n',1,2,3);
msgbox(msg,'Output Params');
The above example allows you to write out three parameters with their values. Perhaps you can adapt this for your needs.
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!