フィルターのクリア

How to display strikethrough text on matlab command window???

7 ビュー (過去 30 日間)
Santhosh
Santhosh 2017 年 3 月 13 日
回答済み: Guillaume 2017 年 3 月 13 日
how can i possible do text formatting in matlab texts???
disp('Hello!!!');
yields a result
Hello!!!
in the command window how can i format that text??? how to get a display just as like in the attached image in the matlab command window????
  3 件のコメント
Santhosh
Santhosh 2017 年 3 月 13 日
I want to display strike through string in matlab gui.
Walter Roberson
Walter Roberson 2017 年 3 月 13 日
https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-the-command-window
Does most of the possible formatting.
I would need to have a look again to see if strike through can be done

サインインしてコメントする。

回答 (1 件)

Guillaume
Guillaume 2017 年 3 月 13 日
There are very few ways you can format text in the command window. Strikethrough is not an option. You can underline, bold, or change the colour and that's it. Note that this uses undocumented behaviour of matlab so may stop working in any future version.
See this post and all the links at the bottom of it. As per Walter's comment, you can download the cprintf function from the file exchange

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by