am试图使用MATLAB APP DESIGNER设计界面。但是,我收到一条错误消息。
这是用于使用MATLAB APP DESIGNER创建用户界面
% Callbacks that handle component events
methods (Access = private)
% Code that executes after component creation
function startupFcn(app, varargin)
% Configure image axes
app.ImageAxes2.Visible = 'off';
app.ImageAxes.Colormap = gray(256);
axis(app.ImageAxes, 'image');
app.ImageAxes3.Visible = 'off';
app.ImageAxes.Colormap = gray(256);
axis(app.ImageAxes, 'image');
end
% Callback function
function DropDownValueChanged(app, event)
% Update the image and histograms
updateimage(app, app.DropDown.Value);
end
% Callback function
function LoadButtonPushed(app, event)
% Display uigetfile dialog
filterspec = {'*.jpg;*.tif;*.png;*.gif','All Image Files'};
[f, p] = uigetfile(filterspec);
% Make sure user didn't cancel uigetfile dialog
if (ischar(p))
fname = [p f];
updateimage(app, fname);
end
end
我希望在运行模拟后显示用户界面。但是我收到以下错误消息:
"Missing multiplication operator, missing or unbalanced delimiters. To construct matrices, use brackets instead of parentheses".
错误指向使用METHODS函数的行。但是,MATLAB APP DESIGNER代码视图中的特定行是灰色的。结果,我无法编辑该特定行。任何建议将不胜感激。