read a image in a axes

2 views (last 30 days)
Sajid Afaque
Sajid Afaque on 10 Apr 2019
Commented: Sajid Afaque on 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

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!