Clear Filters
Clear Filters

Detect figure or uifigure from the handle?

3 views (last 30 days)
Simple question: How can I detect if the handle of Type 'figure' corresponds to a figure or uifigure?

Accepted Answer

Walter Roberson
Walter Roberson on 15 Sep 2023
figure() handles do not have a property isUIFigure
uifigure() handles have a property isUIFigure with value true

More Answers (1)

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

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!