sharing data between two gui's
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!