フィルターのクリア

How to show a specified tau font in the subscript of y axis label in a matlab plot?

1 回表示 (過去 30 日間)
JaM Ayon
JaM Ayon 2023 年 5 月 31 日
回答済み: Raghava S N 2023 年 6 月 1 日
I am using the following code.
str = '$$ Nu_{\tau}/\dot{w} $$';
ylabel(str,'Interpreter','latex')
But I want to put this specified font of tau - char(0x3C4). I also don't want the text in italic font. Please help me out. Thanks in advance!

回答 (1 件)

Raghava S N
Raghava S N 2023 年 6 月 1 日
There is a LaTeX solution to this, by encasing your label inside \mathrm{}. The output has been shown below. Is this the font you were looking for?
str = '$$ \mathrm{Nu_{\tau}/\dot{w}} $$';
ylabel(str,'Interpreter','latex')

カテゴリ

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