필터 지우기
필터 지우기

How to represent greek letters in matlab?

조회 수: 10 (최근 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 CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by