How to insert an image in a uifigure
47 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bernardo Macara
le 25 Oct 2020
Réponse apportée : Monisha Nalluru
le 30 Oct 2020
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 commentaires
Réponse acceptée
Monisha Nalluru
le 30 Oct 2020
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!