xlabel with non italic mu in latex

21 ビュー (過去 30 日間)
Tim Krzyzanowski
Tim Krzyzanowski 2018 年 11 月 16 日
コメント済み: Rick 2020 年 2 月 27 日
Hello i want to label my x-axis with Latexcode.
I want it in this format
t / µs
as you can see i need to have the t in italic and the µs in non italic. I used to try this code:
xlabel(['$\it t/ \mathrm{\mu s}$'],'interpreter','latex')
but the Latex interpreter is printing the \mu always in italic is there any posibility to solve this?

採用された回答

Adam Danz
Adam Danz 2018 年 11 月 16 日
編集済み: Adam Danz 2018 年 11 月 16 日
You can enter the µ character directly; no need for latex.
xlabel('{\itt} / µs', 'interpreter', 'tex')
  3 件のコメント
Adam Danz
Adam Danz 2020 年 2 月 27 日
Try this.
>> [char(956), ' = 68']
ans =
'μ = 68'
>> [char(963), ' = 4']
ans =
'σ = 4'
Rick
Rick 2020 年 2 月 27 日
Amazing! Thanks very much Adam.
Rick

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by