How to display an image within the figure in App Designer?
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I used to work with GUI and I am very new to the 'App Designer'. As you can see here I have created an interface.
I am hoping to click on the top button 'load your image', select an image in the file, then display it in the 'image' area. I don't know how to achieve this.
Please can anyone give me some advices? :)
0 个评论
采纳的回答
Yongjian Feng
2021-11-17
编辑:Yongjian Feng
2021-11-17
Try this in your callback:
[file, path] = uigetfile({'*.png'; '*.jpg'}, 'Select file');
app.Image.ImageSource = [path file];
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!