create main panel and create sub panel on main panel. in subpanel one close button. when we press close button than main panel and subpanel go closed.

조회 수: 4 (최근 30일)
create main panel and create sub panel on main panel. in subpanel one close button. when we press close button than main panel and subpanel go closed.
i have enclosed GUI IMAGE

답변 (1개)

Walter Roberson
Walter Roberson 2017년 9월 18일
outer = uipanel()
inner = uipanel('Parent', outer)
but = uicontrol('style', 'push', 'Callback', @(src, event) delete(outer) )

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by