How to display GUI output into message box ?

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 :)

Answers (1)

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.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 5 Dec 2015

Answered:

on 6 Dec 2015

Community Treasure Hunt

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

Start Hunting!