Borrar filtros
Borrar filtros

How do I make greek letters appear as symbols and use them as variables?

29 visualizaciones (últimos 30 días)
'\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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Feb. de 2024
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)
lambda = 
But it only works for unbound variables; variables that have been bound to a value get replaced by the value
1 + lambda
ans = 

Más respuestas (0)

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by