read a image in a axes

조회 수: 1 (최근 30일)
Sajid Afaque
Sajid Afaque 2019년 4월 10일
댓글: Sajid Afaque 2019년 4월 10일
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개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by