Why the editor of the mask initialization code is disabled

10 visualizaciones (últimos 30 días)
Lorenzo el 15 de Nov. de 2022
Comentada: Silvio Traversaro el 24 de Mayo de 2023
I am playing with a really simple masked subsystem, and I want to add some code to initiatize the masked block.
But, it seems that code editor is disabled, and I cannot add any code:
I would like to add some code within the function "initialization".
Is there something I have to do to enable it? Or am I missing something?
Note that I am working on Ubuntu 22.04.
Thanks for your help!
  4 comentarios
Lorenzo el 23 de Feb. de 2023
It seems like also other parts of the mask editor are not writable (for example the property of edit boxes, ...)

Iniciar sesión para comentar.

Respuestas (2)

Lorenzo el 24 de Mayo de 2023
If anyone is experiencing this error, a solution could be to switch from wayland to x11.
  1 comentario
Silvio Traversaro
Silvio Traversaro el 24 de Mayo de 2023
To do so, at least on Ubuntu 22.04 you can go edit the /etc/gdm3/custom.conf and change the line:
to verify that you are actually running x11, you can run:

Iniciar sesión para comentar.

Bhavana Ravirala
Bhavana Ravirala el 18 de Nov. de 2022
You are not required to enable anything to add code to the “initialization” function.
Also, Could you share the errors or warnings that you are getting when you try to add code to the “initialization” function.
  4 comentarios
Lorenzo el 24 de Feb. de 2023
Nope, it seems also the rest of Mask Editor is not working fine.
For example, if I add a edit box, and then I try to change its name property, I cannot.

Iniciar sesión para comentar.


Más información sobre Subsystems en Help Center y File Exchange.





Community Treasure Hunt

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

Start Hunting!

Translated by