read a image in a axes

2 visualizzazioni (ultimi 30 giorni)
Sajid Afaque
Sajid Afaque il 10 Apr 2019
Commentato: Sajid Afaque il 10 Apr 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

Risposta accettata

Walter Roberson
Walter Roberson il 10 Apr 2019
imhandles() is one way.
However, if you have the axes handle, I would suggest
findobj(TheAxesHandle, 'type', 'image')
  4 Commenti
Sajid Afaque
Sajid Afaque il 10 Apr 2019
thanks walter its working
Sajid Afaque
Sajid Afaque il 10 Apr 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

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by