read a image in a axes

1 Ansicht (letzte 30 Tage)
Sajid Afaque
Sajid Afaque am 10 Apr. 2019
Kommentiert: Sajid Afaque am 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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Visual Exploration finden Sie in Help Center und File Exchange

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by