How do I get to boldface the numbers that I input?
조회 수: 5(최근 30일)
Hans Scharler 2022년 6월 7일
I know some fprintf tricks for text formatting, although it might not be elegant. You can use strong inside of fprintf.
outputNumber = randi(99);
fprintf('What is the meaning of life? <strong>%d</strong>', outputNumber)
Also, there is a File Exchange / Add-on called "cprintf" for customizing the output in the command window: https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-command-window