Why the editor of the mask initialization code is disabled

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 Comments

I have the same problem.
I have just installed Ubuntu 2022.04 and Matlab R2022b. I see that the mask editting window is changed too much with respect to Matlab R2020b which I used before. Now, in Matlab R2022b, when I open the mask edit window, I can not write anything (like paramter name, parameter prompt in the Parameters and Dialog tab or the Initialization code section and Parameter callback section in the Code tab).
For more clarity, I can click on the bottoms of mask window (for example for adding a new mask parameter), but I can not absolutely write anything (like parameter name, initialization commands, etc.) in the window. When I try to write something, it does not generate any error but it does not reat to what I am typing, it seems that the keyboard input does not work for the mask window.
Hi, same problem here.
Furthermore, I sended my .slx file to my Windows PC (also running Matlab2022b) and I could write in the mask window. I don't know how to solve it.
It seems like also other parts of the mask editor are not writable (for example the property of edit boxes, ...)

Sign in to comment.

Answers (3)

If anyone is experiencing this error, a solution could be to switch from wayland to x11.

1 Comment

To do so, at least on Ubuntu 22.04 you can go edit the /etc/gdm3/custom.conf and change the line:
#WaylandEnable=false
to
WaylandEnable=false
to verify that you are actually running x11, you can run:
cat $XDG_SESSION_TYPE

Sign in to comment.

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 Comments

Thanks Bhavan Ravirala for the reply.
No errors. I am just not allowed to add code in the editor, as if it is not enabled.
I am running Matlab2022b on Ubuntu 22.04.
do you know if the mask editor is fully supported in Ubuntu 22.04?
Hi Lorenzo
Are you able to add code to the parameter callback? Is the rest of maskeditor working fine? Can you please provide more information regarding options which you can't access.
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.
Thanks

Sign in to comment.

I believe I encountered this problem - which I would characterize as "being unable to enter any text within the mask editor". And eventually found during attempting to install an older version that the workaround here https://www.mathworks.com/support/bugreports/1797911 fixes the issue.

Categories

Products

Release

R2022b

Asked:

on 15 Nov 2022

Answered:

on 24 Apr 2025

Community Treasure Hunt

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

Start Hunting!