MATLAB: How to bold, italics sentence using fprintf in matlab

boldfprintf

How to bold , italics sentence using fprintf in matlab

Best Answer

There is no mechanism for that, just as there is no mechanism for color or underlining or blinking.
fprintf() is for transferring characters, and characters do not have inherent attributes or font properties.
Having said that: some output destinations interpret the characters they receive, and do so in such a way that character or font information can be attached.
The above are for output to the command window. If you happen to be outputting to a terminal emulator (e.g., if you are running matlab -nodesktop) then you may be able to take advantage of the ANSI sequences for text attributes: http://en.wikipedia.org/wiki/ANSI_escape_code#graphics