How to underline the following text in sprintf

7 次查看(过去 30 天)
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.

采纳的回答

KL
KL 2017-9-21
I usually go with
disp(X)
disp('------------')

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by