フィルターのクリア

Detect figure or uifigure from the handle?

3 ビュー (過去 30 日間)
Bruno Luong
Bruno Luong 2023 年 9 月 15 日
コメント済み: Cris LaPierre 2023 年 9 月 15 日
Simple question: How can I detect if the handle of Type 'figure' corresponds to a figure or uifigure?

採用された回答

Walter Roberson
Walter Roberson 2023 年 9 月 15 日
figure() handles do not have a property isUIFigure
uifigure() handles have a property isUIFigure with value true
  1 件のコメント
Bruno Luong
Bruno Luong 2023 年 9 月 15 日
Thanks so I use this
isUIFigure = @(hfig) isprop(hfig ,'isUIFigure')

サインインしてコメントする。

その他の回答 (1 件)

Voss
Voss 2023 年 9 月 15 日
Where f is your figure or uifigure handle:
matlab.ui.internal.isUIFigure(f)
  1 件のコメント
Bruno Luong
Bruno Luong 2023 年 9 月 15 日
Thank's that even better

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by