String scalar or character vector must have valid interpreter syntax
조회 수: 98 (최근 30일)
이전 댓글 표시
axis ([0,20,0,20])
text(3.0, 8.0,'\fontsize{30} \omega=2 \pi*f=2 \pi*c/ \lamda')
댓글 수: 2
Walter Roberson
2023년 1월 23일
In Modern Greek, the name of the letter is Λάμδα
Unicode uses the (Modern Greek-based) spelling "lamda" in character names, instead of "lambda", due to "the pre-existing names in ISO 8859-7, as well as preferences expressed by the Greek National Body".[18]
답변 (1개)
Ameer Hamza
2020년 9월 28일
편집: Ameer Hamza
2020년 9월 28일
Here are two options to write this
axis ([0,20,0,20])
text(3.0, 8.0,'$\omega=2 \pi*f=2 \pi*c /\lambda$', ...
'Interpreter', 'latex', ...
'FontSize', 30)
and
axis ([0,20,0,20])
text(3.0, 8.0,'\omega=2 \pi*f=2 \pi*c /\lambda', ...
'Interpreter', 'tex', ...
'FontSize', 30)
Read more about intrepreter options here: https://www.mathworks.com/help/matlab/ref/text.html#f68-481090_sep_shared-Interpreter
댓글 수: 5
Ameer Hamza
2020년 9월 28일
You placed escape character (\) at unnecessary locations
text(2,2, 'y_{z} = e^{2} = 1+ x+ x^{2}/2!+ x^{3}/3+',...
'Interpreter', 'tex', ...
'FontSize', 20)
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!