首页 > 解决方案 > 标记坐标和 ginput - Matlab

问题描述

我希望使用这个简单的代码在 App 设计器中的轴上标记/标记坐标,但没有成功。知道如何直接在轴上执行此操作(app.ImageAxes)吗?

代码:

function ButtonPushed(app, event)
        imshow('cameraman.tif','Parent',app.ImageAxes); 
        app.ImageAxes.HandleVisibility = 'on';
        [x,y,button] = ginput(5)
        app.ImageAxes.HandleVisibility = 'off';
    end

标签: matlabmatlab-app-designer

解决方案


推荐阅读