标签: matlab matlab-guide
当我在MATLAB GUI中按下按钮时,我想将图像从特定文件夹加载到轴。我试过这段代码,它让我选择我想要的图片,但它没有加载到轴上。有人可以帮我吗?
[File_Name, Path_Name] = uigetfile() fullImageFileName = fullfile(Path_Name, File_Name); Selected_Image = imread(fullImageFileName ); imshow([Selected_Image ,handles.axes1])