how can i change the colors of matrix rows ?

4 ビュー (過去 30 日間)
armin m
armin m 2021 年 7 月 4 日
コメント済み: armin m 2021 年 7 月 6 日
hi, i have build a matix. i have turned diary mode on ('diary on'). i wanna change just last row color of matix in output file. how? thank you.

採用された回答

dpb
dpb 2021 年 7 月 4 日
See the Limitations and Tips section of the doc for diary
Limitations
Because the output of diary is plain text, the log file does not exactly mirror what you see on screen:
  • The diary file does not include graphics (figure windows).
  • The diary file does not preserve syntax highlighting and font preferences.
  • The diary file shows hidden components in the Command Window, such as hyperlink information generated with matlab:, in plain text. For example, if you enter this statement in the Command Windowstr = sprintf('%s%s', ...
'<a href="matlab:magic(4)">', ...
'Generate magic square</a>');
disp(str)
MATLAB displays
However, the diary file, when viewed in a text editor, shows
str = sprintf('%s%s', ...
'<a href="matlab:magic(4)">', ...
'Generate magic square</a>');
disp(str)
<a href="matlab:magic(4)">Generate magic square</a>
Tips
  • To view the contents of the diary file with syntax highlighting, use the type function.
  9 件のコメント
dpb
dpb 2021 年 7 月 6 日
No problem...another way to think of it is it's why there is the Interpreter property for text and tick labels, or why need Adobe Reader for pdf files (and why need .pdf and TeX or LaTeX, etc., etc., ...)
armin m
armin m 2021 年 7 月 6 日

Ok.very good.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by