read a image in a axes

1 vue (au cours des 30 derniers jours)
Sajid Afaque
Sajid Afaque le 10 Avr 2019
Commenté : Sajid Afaque le 10 Avr 2019
hello all,
i am displaying a png image in an axes.
but i need to check whether image is present or not in the axes when i press my pushbutton. how do i do that

Réponse acceptée

Walter Roberson
Walter Roberson le 10 Avr 2019
imhandles() is one way.
However, if you have the axes handle, I would suggest
findobj(TheAxesHandle, 'type', 'image')
  4 commentaires
Sajid Afaque
Sajid Afaque le 10 Avr 2019
thanks walter its working
Sajid Afaque
Sajid Afaque le 10 Avr 2019
hey walter
what should i do now,if i want to read the same image in another gui named gui2, without specifing the image name

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Visual Exploration dans Help Center et File Exchange

Produits


Version

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by