How do I make greek letters appear as symbols and use them as variables?
조회 수: 36 (최근 30일)
이전 댓글 표시
'\lambda' = arctan(y/x)
This is my current code. How do I make lambda appear as a symbol, and then set it as a variable? Thanks.
댓글 수: 0
채택된 답변
Walter Roberson
2024년 2월 2일
You cannot do that.
If you use the Symbolic Toolbox, and you are using LiveScript (or MATLAB Online, or MATLAB Answers), and you use a unbound symbolic variable named after a greek letter, then in output the symbol will be rendered.
syms alpha beta lambda
lambda = atan2(beta,alpha)
But it only works for unbound variables; variables that have been bound to a value get replaced by the value
1 + lambda
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!