亲爱的大家,
我想向图中添加一个按钮,所以我使用了这个代码
我= imread('cameraman.tif');
图,imshow(i);
UICONTROL('风格'那'按钮'那'串'那'SAVE'那......
'Position', 20 20 5020],......
'打回来'那......
@yourcallback);
现在,在按下按钮后如何在GUI的轴上向这个数字显示这个数字?
我之前使用了以下代码,但现在不在Matlab2015B中工作
UICONTROL('风格'那'按钮'那'串'那'SAVE'那......
'Position', 20 20 5020],......
'打回来'那......
@yourcallback);
functionyourCallback(ObjH, EventData)
我= getMage;
setappdata(0,'I', 一世);
Resxgui;
有没有替代方法来做到这一点?
Any help will be appreciated.
Meshoo
2评论
直接链接到此评论
//www.tianjin-qmedu.com/matlabcentral/answers/266350-how-to-transfer-a-figure-to-a-gui#Comment_339858.
直接链接到此评论
//www.tianjin-qmedu.com/matlabcentral/answers/266350-how-to-transfer-a-figure-to-a-gui#Comment_339858.
直接链接到此评论
//www.tianjin-qmedu.com/matlabcentral/answers/266350-how-to-transfer-a-figure-to-a-gui#Comment_339869.
直接链接到此评论
//www.tianjin-qmedu.com/matlabcentral/answers/266350-how-to-transfer-a-figure-to-a-gui#Comment_339869.
登录评论。