如何用按钮在matlab中显示GUI轴中的图片

时间:2016-12-12 09:27:34

标签: matlab

我将如何使用按钮在matlab中显示GUI轴中的图片,我将创建此代码:

AxesPourAfficherImage = findobj('Tag', 'Image');
function OpenFile_Callback(hObject, eventdata, handles)


        [FileName,PathName] = uigetfile({'*.png';'*.tif';'JPG.tif'},'Choisir une photo ')
        Image = imread(strcat(PathName,FileName));
        axes(hendleAxesPourAfficherImage)
        imshow(Image)
        save('LesVariables') 

但这段代码不起作用,因为当我按下按钮时,在我看来是另一个人物。怎么解决问题?

0 个答案:

没有答案