필터 지우기
필터 지우기

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)

카테고리

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