Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I include an image into a GUI?
1 次查看(过去 30 天)
显示 更早的评论
I need to include images (in .jpg or .bmp format) in certain locations in a GUI that I am preparing.
How can I do this? A simple example would be most useful.
Thanks Tomy
0 个评论
回答(1 个)
Geoff Hayes
2016-5-14
Tomy - if you are using GUIDE to create your GUI, then just add one or more axes in the locations where you want to display the images. Then, in the _OpeningFcn of your GUI, load the images and place them in these axes using either imshow or image. In either of these calls, make sure that you specify the axes to which you want to display the image.
1 个评论
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!