在调试运行的时候没有错误
但是再current directory中直接双击运行的时候就出现这个问题

错误提示如下:(总之是这一类的)
Attempt to reference field of non-structure array.
Error in ==> zitongbu_gui>pn_listbox_Callback at 373
set(handles.PNGeneratorEdit,'string',str);

 

解决方法:

貌似handles没有更新变量。前面加了两句这个就好了:
handles=guihandles;
guidata(hObject,handles);

 

亲测好使,至少在设置colormap时好使。

参考自:http://www.ilovematlab.cn/thread-163662-1-1.html

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
相关资源
相似解决方案