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 Center および File ExchangeVisual Exploration についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by