How to bold, italics sentence using fprintf in matlab?
Mostra commenti meno recenti
How to bold , italics sentence using fprintf in matlab
Risposta accettata
Più risposte (1)
Ryan Friedman
il 1 Mag 2019
30 voti
You can print bold only (not italics) using fprinf as shown below.
fprintf('Hello <strong> bold </strong> world.\n')
>> Hello bold world.
8 Commenti
Adoniram
il 29 Mag 2020
Thanks!
fprintf(' <strong> Hello world.</strong> \n')
Alec Jacobson
il 28 Mar 2021
whoa! Where is this documented?
Nicholas Fugal
il 24 Ago 2021
Any why does it work on the command line but not a UI figure??
Walter Roberson
il 24 Ago 2021
However, for "traditional figures", only uicontrol style 'radio' and 'push' and 'dropbox' and 'listbox', and uitable supported HTML -- in particular not uicontrol style 'edit' or uicontrol 'text'
Aldo Mote Vigueras
il 30 Gen 2022
It worked very well. Thanks
Steven
il 24 Nov 2023
Works nicely in the MATLAB console window (R2023b)
Unfortunatly when using publish() to create a pdf or html document the same example apears as 'Hello <strong> bold </strong> world.' in the document.
Victoria Serrano
il 30 Gen 2024
I'm having the same issue when using publish() to create the PDF. Has anyone found the solution?
Categorie
Scopri di più su Call Python from MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!