可以帮助我解决我的问题。我正在使用Matlab创建图像处理算法,但发现错误:
??? Error using ==> set
uicontrol handle passed to 'CurrentAxes' property - valid axes handle required
这是代码:
set(iniw.figure1,'CurrentAxes',iniw.Cover_Image);
根据变量的命名,您正在尝试CurrentAxes
将图形的设置为...图像。一个axes
是其中容器包含所述图像对象。您需要先拿到axes
这包括图像和一套是为CurrentAxes
。您可以使用确定ancestor
。
set(iniw.figure1, 'CurrentAxes', ancestor(iniw.Cover_Image, 'axes'))
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句