Putting tables in message boxes

I'm trying to display a table in a messgae box, i've written this bit of code to test with:
function Pop_up
A = ['1','2','3','4','5'];
B = ['5','4','3','2','1'];
fprintf('Num1\t\tNum2\n');
fprintf('%5.1f\t\t%5.1f\n', A, B);
which displays the table in the command window just fine, but how do I now put this into a message box? presumably with:
msgbox()

Risposte (2)

dpb
dpb il 13 Mar 2014
Write the text to a variable instead of std output
doc sprintf

Richiesto:

il 13 Mar 2014

Risposto:

il 13 Mar 2014

Community Treasure Hunt

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

Start Hunting!

Translated by