简体   繁体   English

如何将Picturebox添加到Matlab App Designer?

[英]How to add picturebox to Matlab App Designer?

I want to add picture in my Matlab UI application made with App Designer. 我想在用App Designer制作的Matlab UI应用程序中添加图片。 I there any way how to add picture box or something? 我有什么办法怎么添加图片框之类的? Thank you. 谢谢。

edit: I know only about adding picture to button, but cannot find any other way. 编辑:我只知道将图片添加到按钮,但找不到任何其他方法。

f = uifigure;
im = uiimage(f);
im.ImageSource = 'imagename.png';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM