Trying to write micro symbol in an axis label in matlab in non italics.
21 ビュー (過去 30 日間)
古いコメントを表示
I want to make an axis label of x (μm) and have been trying to use the following commands,
ylabel('$x$ (\mu m)', 'interpreter', 'latex')
ylabel('$x$ (μm)', 'interpreter', 'latex')
but for each I get the following error,
String scalar or character vector must have valid interpreter syntax:
$x$ (\mu m).
0 件のコメント
採用された回答
Walter Roberson
2022 年 4 月 28 日
That is not supported in latex without the equivalent of amsfont package. Math mode always italicizes the greek letters unless you pull in another font, and MATLAB does not support mixing math mode and non-math mode.
However if you use tex instead of latex then the μ unicode character is supported, and perhaps you could manually tell it to switch to italic for the x
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Labels and Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!