フィルターのクリア

text in plot with latex interpreter

333 ビュー (過去 30 日間)
Luis Isaac
Luis Isaac 2020 年 12 月 12 日
コメント済み: Luis Isaac 2020 年 12 月 12 日
Dear
I would like to write come text in a simple plot using latex codification
The plot is here
The text in plot is code as follows:
text(x0 ,y0-(i-1)*dy,sprintf('$$c_{[\rho_{e}]_w^m}$$= %.3f',b(i)), ...
'Interpreter', 'latex', ...
'fontsize', 10);
Why dose the subscript of c is not the greek letter rho?
thanks in advance
  1 件のコメント
Luis Isaac
Luis Isaac 2020 年 12 月 12 日
many thanks!!

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

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 12 月 12 日
編集済み: Cris LaPierre 2020 年 12 月 12 日
Because sprintf interprets '\r' as a carriage return. Use '\\r' instead.
text(.1,.5,sprintf('$$c_{[\\rho_{e}]_w^m}$$= %.3f',18.556), ...
'Interpreter', 'latex', 'fontsize', 10);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by