Check if New Desktop addon is used in current session

10 vues (au cours des 30 derniers jours)
Marco Pasquali
Marco Pasquali le 24 Mai 2024
Commenté : sst le 10 Déc 2024
Is there a way to check programmatically if in the New Desktop is active in the current session (I want to detect this info in a startup file)?
  7 commentaires
sst
sst le 26 Juin 2024
In my specific case, I would like to use unicode characters for the "listbox" uicontrol, which works only in the New Desktop mode, and not in the classic desktop mode. The classic desktop mode, on the other hand, allows the use of HTML content in the uicontrol, but not unicode characters. This is part of a much larger application.
Adam Danz
Adam Danz le 27 Juin 2024
Thanks for this info @sst.

Connectez-vous pour commenter.

Réponse acceptée

Mann Baidi
Mann Baidi le 4 Déc 2024
To confirm programmatically whether the new MATLAB desktop add-on is active in the current session, you can use the rendererinfo command. Specifically, check the GraphicsRenderer field by running the following command:
rendererinfo().GraphicsRenderer
If the output is 'WebGL', it indicates that the session is utilizing the new desktop add-on.
For more details about the rendererinfo command, you can refer to the MATLAB documentation::
  1 commentaire
sst
sst le 10 Déc 2024
Thanks, that looks like it's working.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Language Support dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by