Create and open new fig

조회 수: 1 (최근 30일)
Ryan Sinfield
Ryan Sinfield 2016년 11월 9일
답변: Geoff Hayes 2016년 11월 11일
I have a main fig file for my matlab gui, and I have created another one that I want to be able to open with the click of a button. How?
function NewWindowButton_Callback (hObject, eventdata, handles)
% Open the new window - otherwindow.fig -

채택된 답변

Geoff Hayes
Geoff Hayes 2016년 11월 11일
Ryan - if you mean that you have created another GUI (using GUIDE) and you wish to open that other GUI from within the first one, then you can just call it as
function NewWindowButton_Callback(hObject, eventdata, handles)
% call your other GUI
OtherGui;
where OtherGui is the name of your other GUI (the name for the m and fig files).

추가 답변 (0개)

카테고리

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