How to display all this in a single msgbox?
이전 댓글 표시
fprintf('Percentage within bins for plan accuracy and height accuracy\n') fprintf('************************************************************\n')
fprintf(' Range Plan Accuracy Height Accuracy\n')
fprintf(' **********************************************************\n')
fprintf('\nLess than 5cm = %.2f %.2f \n', plan_pcent_less5,dH_pcent_less5)
fprintf('\nLess than 10cm = %.2f %.2f \n', plan_pcent_less10,dH_pcent_less10)
fprintf('\nLess than 15cm = %.2f %.2f \n', plan_pcent_less15,dH_pcent_less15)
채택된 답변
추가 답변 (1개)
Jos (10584)
2015년 7월 9일
To show multiple lines in a msgbox, use a cell array:
C{1} = 'Hello' ;
C{2} = sprintf('N = %d',10) ;
msgbox(C)
댓글 수: 3
AbelM Kusemererwa
2015년 7월 9일
편집: AbelM Kusemererwa
2015년 7월 10일
Image Analyst
2015년 7월 10일
Sorry, no. Despite many of us asking for a long time, MATLAB still won't let us change the font size in msgbox(), helpdlg(), or warndlg(). You might try looking in undocumented MATLAB or else write your own GUI to take inputs for 'FontSize', 'FontWeight', 'Color', etc.
Adam Danz
2018년 8월 10일
Here's a function that will change msgbox fontsize
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!