Detect figure or uifigure from the handle?

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

Voss
Voss 2023-9-15
Where f is your figure or uifigure handle:
matlab.ui.internal.isUIFigure(f)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by