Effacer les filtres
Effacer les filtres

app designer special characters

12 vues (au cours des 30 derniers jours)
Thomas Ligon
Thomas Ligon le 21 Fév 2017
Réponse apportée : Ishaan Mehta le 24 Sep 2024 à 11:49
Hi, I am writing my first app designer applications, and would like to use special characters, such as Greek letters. In the title of a plot, I used the TeX notation of \xi_0 and it works just fine. However, in the label of a slider, that didn't work, and char(958), i.e. Unicode, and texlabel(...) didn't either. What can I do here?
  1 commentaire
Sudarshan Kolar
Sudarshan Kolar le 28 Fév 2017
I understand that you want to use special characters as label for your slider in appdesigner.
In the appdesigner startupFcn, you can declare something like this:
app.SliderLabel.Text = char(958);
More information about startupFcn:

Connectez-vous pour commenter.

Réponses (1)

Ishaan Mehta
Ishaan Mehta le 24 Sep 2024 à 11:49
Hi Thomas,
I understand that you wish to you TeX characters in your MATLAB App Designer application.
One way to render LaTeX code anywhere in the apllcation's user interface is to use the "Label" component with its "Interpreter" option set to "latex", as in the image below.
This MathWorks documentation page provides more information on the "interpreter" optoin and the supported TeX markup.
Hope this helps.

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by