Is it possible to display text in the console using latex expressions ?
Mostrar comentarios más antiguos
Hello,
I would like to display in the console grec letters using the latex syntaxe. Is there a way do this ?
For exemple I can do this with the title() function :
title('\theta_{\lambda/4}=20°')
But
disp('\theta_{\lambda/4}=20°')
displays literally \theta_{\lambda/4}.
I saw that disp('λ') works but you need to ctrl c - ctrl v the λ from somewhere to do so. Since latex interpretation works in title() I guess there must be a way to write latex in a prompt.
Thank you
6 comentarios
Lorenzo
el 1 de Feb. de 2023
Hello Matt,
The reason why this work with functions such as "title", is that title has the property "interpreter" where you can select latex as an option (I think in your case it is selected by default).
I am not sure that it is possible to do the same on the command window. May I know why you want to output the promt in the command window? Maybe we can find another workaround that is still useful for you.
Best,
Lorenzo
Matt
el 1 de Feb. de 2023
Mario Malic
el 1 de Feb. de 2023
The command window supports some sort of HTML, maybe it's possible to do so, however, the effort might not be worth it.
The output of head function is an example.
Lorenzo
el 1 de Feb. de 2023
Hello Matt,
Is there a reason why you want to debug with text promt and not with the standard debug functionalities?
Best,
Lorenzo
Matt
el 6 de Feb. de 2023
Matt
el 6 de Feb. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Labels and Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!