我想你说的是MATLAB应用程序设计器中的函数createComponents(app)。
不幸的是,灰色的部分在MATLAB应用程序设计器
不可编辑。
不过,如果你想找到一个变通办法,我认为这个答案可能会有帮助
https://in.mathworks.com/matlabcentral/answers/413792-how-to-edit-auto-generated-code-in-app-designer