How do I make greek letters appear as symbols and use them as variables?
24 次查看(过去 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!