How to represent greek letters in matlab?

6 ビュー (過去 30 日間)
M.S. Khan
M.S. Khan 2020 年 3 月 25 日
コメント済み: Peng Li 2020 年 3 月 25 日
Lets suppose, i want to show or altsin but i cannot.
is there any procedure to handle it without live editor.

回答 (1 件)

Peng Li
Peng Li 2020 年 3 月 25 日
Where do you want to show them? On a figure object, MATLAB fully supports latex or tex syntax. You can use, e.g., text(yourXvalue, yourYvalue, 'sin(\theta)') to show this on an axis at place defined by (yourXvalue, yourYvalue).
  2 件のコメント
M.S. Khan
M.S. Khan 2020 年 3 月 25 日
I dont want to show on figure. I want to use phi symbol in my mfile. Sin(\phi) does not work.
Peng Li
Peng Li 2020 年 3 月 25 日
I don't think it works in mfile. You'd better use the English version, say, theta, directly as the variable name.

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by