How to insert an image in a uifigure
40 ビュー (過去 30 日間)
古いコメントを表示
Bernardo Macara
2020 年 10 月 25 日
回答済み: Monisha Nalluru
2020 年 10 月 30 日
Hello, i use matlab r2018a,
I want to put an image above a checkbox for the user to chose from.
i create an uifigure and then i use an uicheckbox but i need to find a way to put a picture aboce the checkbox. I have a problem and i cant use uiimage because i need an upgraded version. So using matlabr2018a is there a way i can insert the image into the uifigure?
0 件のコメント
採用された回答
Monisha Nalluru
2020 年 10 月 30 日
You can display the image in uifigure by having uiaxes as image parent.
As an example
f=uifigure;
ax=uiaxes(f);
imagedata= imread('image.png');
image(imagedata, "Parent", ax);
ax.Visible='off';
Hope this helps!
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop uifigure-Based Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!