How to underline the following text in sprintf

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 Entering Commands en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Sept. de 2017

Respondida:

el 21 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by