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!