資源描述:
《matlabgui數(shù)據(jù)管理系統(tǒng).docx》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、matlabgui數(shù)據(jù)管理系統(tǒng)12020年4月19日文檔僅供參考程序附件1:一、主界面:學(xué)生課程成績管理系統(tǒng)1、打開文件按鈕:%---Executesonbuttonpressinpushbutton5.functionpushbutton5_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton5(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructur
2、ewithhandlesanduserdata(seeGUIDATA)globalstr;[FileNamePathName]=uigetfile(('*.xls'),'chooseaFile');22020年4月19日文檔僅供參考str=[PathNameFileName];set(handles.edit1,'string',str);2、數(shù)據(jù)庫管理按扭:%---Executesonbuttonpressinpushbutton1.functionpushbutton1_Callback(hObject,eventd
3、ata,handles)%hObjecthandletopushbutton1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%shujukuguanli();globalstr;setappdata(shujukuguanli(),'str',str);3、成績查詢按鈕:%---Executesonbuttonpressinpushbutto
4、n2.functionpushbutton2_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)globalstr;setappdata(chengjichaxun(),'str',str);32020年4月19日文檔僅供參
5、考5、成績直方圖按鈕:%---Executesonbuttonpressinpushbutton4.functionpushbutton4_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton4(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)globalstr;setappd
6、ata(chengjizhifangtu(),'str',str);6、退出按鈕:%---Executesonbuttonpressinpushbutton6.functionpushbutton6_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton6(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdat
7、a(seeGUIDATA)close(cjguanli());二、子界面:數(shù)據(jù)庫管理42020年4月19日文檔僅供參考1、顯示整體數(shù)據(jù)按鈕:%---Executesonbuttonpressinpushbutton1.functionpushbutton1_Callback(hbject,eventdata,handles)%hObjecthandletopushbutton1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesst
8、ructurewithhandlesanduserdata(seeGUIDATA)%[FileNamePathName]=uigetfile(('*.xls'),'chooseaFile');%str=[PathNameFileName];%set(handles.edit1,'string',str);global