sharing data between two gui's

조회 수: 1 (최근 30일)
Cordelle
Cordelle 2013년 6월 25일
I basically have one main GUI that is calling for a smaller GUI which simply contains a table and a push button. What I want to do is be able to obtain the data that the user inputted into the table in the smaller GUI and put it in a table in the main GUI; all done by using the pushbutton in the smaller GUI. Here is the following code I tried but failed:
===================================================================
MasterSet.m is the smaller GUI
ACModel is the main GUI =====================================================================
In the OpeningFcn function of the main GUI:
guidata(hObject, handles);
setappdata(0, 'hMainGui', get(handles.uitable12, 'Data'));
setappdata(get(handles.uitable12, 'Data'), 'NewValue', handles.MasterSet);
In the Re-Apply button of the smaller GUI:
guidata(hObject, handles);
setappdata(0, 'hMainGui', get(handles.uitable12, 'Data'));
setappdata(get(handles.uitable12, 'Data'), 'NewValue', handles.MasterSet);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by