How to underline the following text in sprintf

8 visualizaciones (últimos 30 días)
Harish M
Harish M el 21 de Sept. de 2017
Respondida: Guillaume el 21 de Sept. de 2017
X=sprintf('DIF algorithm was slower than direct computation method by %d seconds',e);
disp(X)
(just a part of the program)
I need to get underlined version of the text written using sprintf as output in my command window.
Thanks.

Respuesta aceptada

KL
KL el 21 de Sept. de 2017
I usually go with
disp(X)
disp('------------')

Más respuestas (1)

Guillaume
Guillaume el 21 de Sept. de 2017
Officially, the command line display does not support any kind of formatting (underline, bold, etc.).
Saying that:
disp(<">your text here</a>)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by