《matlabgui数据管理系统》由会员分享,可在线阅读,更多相关《matlabgui数据管理系统(5页珍藏版)》请在人人文库网上搜索。
1、matlabgui数据管理系统12020 年 4 月 19 日文档仅供参考程序附件 1:一、主界面:学生课程成绩管理系统1、打开文件按钮:% - Executes on button press in pushbutton5.function pushbutton5_Callback(hObject, eventdata, handles)% hObjecthandle to pushbutton5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handlesstructure wit。
2、h handles and user data (see GUIDATA)global str;FileName PathName=uigetfile( *.xls ),choose a File);22020 年 4 月 19 日文档仅供参考str=PathName FileName;set(handles.edit1, string ,str);2、 数据库管理按扭:% - Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObjectha。
3、ndle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handlesstructure with handles and user data (see GUIDATA)%shujukuguanli();global str;setappdata(shujukuguanli(), str ,str);3、 成绩查询按钮:% - Executes on button press in pushbutton2.function pushbutton2_Call。
4、back(hObject, eventdata, handles)% hObjecthandle to pushbutton2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handlesstructure with handles and user data (see GUIDATA)global str;setappdata(chengjichaxun(), str ,str);32020 年 4 月 19 日文档仅供参考5、成绩直方图按钮:% - Executes on butt。
5、on press in pushbutton4.function pushbutton4_Callback(hObject, eventdata, handles)% hObjecthandle to pushbutton4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handlesstructure with handles and user data (see GUIDATA)global str;setappdata(chengjizhifangtu(), str ,str);。
6、6、退出按钮:% - Executes on button press in pushbutton6.function pushbutton6_Callback(hObject, eventdata, handles)% hObjecthandle to pushbutton6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handlesstructure with handles and user data (see GUIDATA)close(cjguanli();二、子界面:数据。
7、库管理42020 年 4 月 19 日文档仅供参考1、 显示整体数据按钮:% - Executes on button press in pushbutton1.function pushbutton1_Callback(hbject, eventdata, handles)% hObjecthandle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handlesstructure with handles and user data (see GUIDATA)%FileName PathName=uigetfile(*.xls),choose a File); %str=PathName FileName; %set(handles.edit1,string,str);global str1;str1=getappdata(shujukuguanli(), str);52020 年 4 月 19 日。