read a image in a axes

2 次查看(过去 30 天)
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

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by