stevenforest 发表于 2018-4-3 09:56

matlab gui设计报错

编制matlab gui界面,运行不了,报错如下:

Struct contents reference from a non-struct array object.

Error in toolkit>pushbutton2_Callback (line 657)
pass1=get(handles.password,'string');

Error in gui_mainfcn (line 95)
      feval(varargin{:});

Error in toolkit (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)toolkit('pushbutton2_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback



就是提取不出password下的输入值,哪位大神帮忙解答一下,谢谢!

stevenforest 发表于 2018-4-3 09:57

直接打开gui运行时会出现上述报错,但在程序里调用gui时就可以正常运行。

stevenforest 发表于 2018-4-4 07:57

自顶,求大神解惑~
页: [1]
查看完整版本: matlab gui设计报错