Borrar filtros
Borrar filtros

Detect figure or uifigure from the handle?

3 visualizaciones (últimos 30 días)
Bruno Luong
Bruno Luong el 15 de Sept. de 2023
Comentada: Cris LaPierre el 15 de Sept. de 2023
Simple question: How can I detect if the handle of Type 'figure' corresponds to a figure or uifigure?

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Sept. de 2023
figure() handles do not have a property isUIFigure
uifigure() handles have a property isUIFigure with value true
  1 comentario
Bruno Luong
Bruno Luong el 15 de Sept. de 2023
Thanks so I use this
isUIFigure = @(hfig) isprop(hfig ,'isUIFigure')

Iniciar sesión para comentar.

Más respuestas (1)

Voss
Voss el 15 de Sept. de 2023
Where f is your figure or uifigure handle:
matlab.ui.internal.isUIFigure(f)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by