我有主 gui 和另外两个子 gui,我了解如何从一个子 gui 到主 gui 获取输出变量。
此按钮功能在主 gui 中
function pb_main_moisture_content_calc_Callback(hObject, eventdata, handles)
% hObject handle to pb_main_moisture_content_calc (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
m_sc = sub_MoistureContent_Calculator();
此按钮功能位于 sub1 gui 中:
function pb_sub1_update_Callback(hObject, eventdata, handles)
% hObject handle to pb_sub1_update (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
m_sc = getappdata(handles.sub_Moist_Calc, 'appdata_m_sc');
handles.output = m_sc;
guidata(hObject,handles);
uiresume(gcf);
但是我希望这个 m_sc 变量进入另一个子 gui,我需要做什么才能发生这种情况?