How to represent greek letters in matlab?

6 views (last 30 days)
M.S. Khan
M.S. Khan on 25 Mar 2020
Commented: Peng Li on 25 Mar 2020
Lets suppose, i want to show or altsin but i cannot.
is there any procedure to handle it without live editor.

Answers (1)

Peng Li
Peng Li on 25 Mar 2020
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).
Peng Li
Peng Li on 25 Mar 2020
I don't think it works in mfile. You'd better use the English version, say, theta, directly as the variable name.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by