필터 지우기
필터 지우기

Putting tables in message boxes

조회 수: 19 (최근 30일)
Michael
Michael 2014년 3월 13일
답변: nl2605 2014년 3월 13일
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()

답변 (2개)

dpb
dpb 2014년 3월 13일
Write the text to a variable instead of std output
doc sprintf

nl2605
nl2605 2014년 3월 13일
I don't know why you would want to do it in a msgbox. You can use a GUI instead.
This link may help.

카테고리

Help CenterFile Exchange에서 LaTeX에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by