【问题标题】:??? Error using ==> set uicontrol handle passed to 'CurrentAxes' property - valid axes handle required???使用 ==> 设置 uicontrol 句柄传递给“CurrentAxes”属性时出错 - 需要有效的轴句柄
【发布时间】:2016-12-04 08:09:21
【问题描述】:

可以帮助我解决我的问题。我正在用 matlab 创建图像处理算法,但发现错误:

??? Error using ==> set
uicontrol handle passed to 'CurrentAxes' property - valid axes handle required

这是代码:

set(iniw.figure1,'CurrentAxes',iniw.Cover_Image);

【问题讨论】:

    标签: matlab matlab-figure


    【解决方案1】:

    根据变量的命名,您正在尝试将图形的CurrentAxes 设置为...图像。 axes 是一个包含图像对象的容器。您需要首先获取包含图像的axes,并将that 设置为CurrentAxes。您可以使用ancestor 确定这一点。

     set(iniw.figure1, 'CurrentAxes', ancestor(iniw.Cover_Image, 'axes'))
    

    【讨论】:

      猜你喜欢
      • 2014-07-24
      • 2013-07-14
      • 2022-01-14
      • 1970-01-01
      • 1970-01-01
      • 2013-06-04
      • 1970-01-01
      • 1970-01-01
      • 2023-03-29
      相关资源
      最近更新 更多