版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
課程論文用MATLAB設(shè)計(jì)一個(gè)萬年歷課程數(shù)學(xué)軟件學(xué)生姓名學(xué)號(hào)手機(jī)號(hào)碼所在學(xué)院理學(xué)院所在班級(jí)信計(jì)1134任課教師提交時(shí)間2023年06月07日目錄萬年歷的效果圖………………………2第一章設(shè)計(jì)目的與規(guī)定...........................................................................................................31.1設(shè)計(jì)目的……………….………………………….31.2設(shè)計(jì)規(guī)定…………………………..3第二章GUI界面設(shè)計(jì)……………………………32.1打開GUI…………………………..32.2添加按鈕控件…………………...42.3根據(jù)控件的屬性及視覺效果做一定的修改……………………..52.4保存、添加功能函數(shù)………………………..52.4.1在“nian_edit1_Callback”中編寫代碼………………….52.4.2在“yue_edit2_Callback”中編寫代碼…………………..62.4.3在“zhou_pushbutton1_Callback”中編寫代碼…………………….62.4.4在“rili_pushbutton2_Callback”中編寫代碼………..6第三章萬年歷的使用…………………………..73.1運(yùn)營(yíng)…………………..83.2輸入…………………..83.3錯(cuò)誤警告…………………………..9第四章改寫界面….………………10第五章結(jié)論、問題解決及改善...............................................................................................105.1結(jié)論與討論………………………..105.2問題解決……………………………105.3可以加以改善的地方…………………………10第六章心得體會(huì)…………………..11參考文獻(xiàn)…………………..11附錄:源程序代碼……………………11萬年歷效果圖第一章設(shè)計(jì)目的與規(guī)定:1.1設(shè)計(jì)目的:通過萬年歷程序的設(shè)計(jì),培養(yǎng)學(xué)生綜合運(yùn)用MATLAB進(jìn)行程序設(shè)計(jì)的能力,加強(qiáng)函數(shù)的運(yùn)用,提高軟件系統(tǒng)分析能力和程序文檔建立、歸納總結(jié)的能力,培養(yǎng)學(xué)生運(yùn)用系統(tǒng)提供的標(biāo)準(zhǔn)函數(shù)及典型算法進(jìn)行設(shè)計(jì),開發(fā)應(yīng)用軟件。
通過本項(xiàng)課程設(shè)計(jì),可以培養(yǎng)獨(dú)立思考、
綜合運(yùn)用所學(xué)有關(guān)相應(yīng)知識(shí)的能力,能更好的鞏固《數(shù)學(xué)軟件》課程學(xué)習(xí)的內(nèi)容,掌握
GUI界面設(shè)計(jì)的基本方法,更加了解了MATLAB的好處和其可用性!
1.2設(shè)計(jì)規(guī)定:設(shè)計(jì)一個(gè)萬年歷GUI界面,其界面布局如上圖,涉及“輸入年份”、“輸入月份”、“顯示星期”、“顯示日歷”等控件。在界面上任意輸入某個(gè)具體年份和月份,單擊按鈕即可顯示本月的日歷及其相應(yīng)的星期(0表達(dá)沒有數(shù)字日期)。第二章GUI界面設(shè)計(jì):2.1打開GUI輸入Guide回車或者在工具欄上點(diǎn)擊圖標(biāo)打開Guide窗口:2.2添加按鈕控件1、選取5個(gè)靜態(tài)文本控件,用來定義“輸入年份”、“輸入月份”、“星期”、“當(dāng)月日歷顯示區(qū)”,以及顯示每周的“日”、“一”、“二”、“三”、“四”、“五”、“六”;2、選取兩個(gè)pushbutton按鈕空間用來定義“顯示星期”、“顯示日歷”;3、添加兩個(gè)編輯文本框控件用來輸入具體的數(shù)字年份和月份;4、添加42個(gè)編輯文本框控件,用來顯示具體的日期。(具體擺放如下圖)2.3根據(jù)控件的屬性及視覺效果做一定的修改1、雙擊“輸入年份”、“輸入月份”、“星期”和“當(dāng)月日歷顯示區(qū)”這4個(gè)靜態(tài)文本框,在“String”文本框中輸入相應(yīng)的中文,將字體大小“FontSize”設(shè)立為20,其他默認(rèn)即可。2、對(duì)于“星期”下方的靜態(tài)文本框,“String”文本框中不輸入任何內(nèi)容,將字體大小“FontSize”設(shè)立為25,在“Tag”文本框中輸入“xingqi_text4”。3、對(duì)于輸入年份和月份的編輯文本框,在“String”文本框中輸入0,將字體大小“FontSize”設(shè)立為18,在“Tag”文本框中分別輸入“nian_edit1”和“yue_edit2”。4、對(duì)于兩個(gè)pushbutton按鈕,在“String”文本框中分別輸入“顯示星期”和“顯示日期”,將字體大小“FontSize”都設(shè)立為20,在“Tag”文本框中分別輸入“zhou_pushbutton1”和“rili_pushbutton2”。5、對(duì)于42個(gè)編輯文本框,一方面將“Enable”屬性中的“on”設(shè)立為“inactive”,使其轉(zhuǎn)為靜態(tài)文本框,并且保持控件的高亮狀態(tài);另一方面,在“String”文本框中都不輸入任何內(nèi)容;最后在“Tag”文本框中從左到右、按列依次輸入“r1_edit”、“r2_edit”、···、“r42_edit”。2.4保存、添加功能函數(shù)把做好的按鈕及靜態(tài)文本框保存為“wannianli.fig”后自動(dòng)彈出Editor的M文本,然后對(duì)相應(yīng)的控件添加功能函數(shù)。以下是相應(yīng)控件的功能函數(shù)的代碼。(單擊工具欄中的按鈕可快速跳轉(zhuǎn)到各個(gè)控件的回調(diào)函數(shù))2.4.1在“nian_edit1_Callback”中編寫代碼functionnian_edit1_Callback(hObject,eventdata,handles)%添加如下程序:input=str2num(get(hObject,'String'));%輸入年份if(isempty(input))set(hObject,'String','0')endguidata(hObject,handles);2.4.2在“yue_edit2_Callback”中編寫代碼functionyue_edit2_Callback(hObject,eventdata,handles)input=str2num(get(hObject,'String'));%輸入月份if(isempty(input))set(hObject,'String','0')endifinput>=13errordlg('月份不能超過12','警告')%顯示警告信息庫(kù)endguidata(hObject,handles);2.4.3在“zhou_pushbutton1_Callback”中編寫代碼functionzhou_pushbutton1_Callback(hObject,eventdata,handles)%添加如下程序:h={'日';'一';'二';'三';'四';'五';'六'};%顯示結(jié)果set(handles.xingqi_text4,'String',h);%更新結(jié)構(gòu)體guidata(hObject,handles);2.4.4在“rili_pushbutton2_Callback”中編寫代碼functionrili_pushbutton2_Callback(hObject,eventdata,handles)%添加如下程序:nian=get(handles.nian_edit1,'String');yue=get(handles.yue_edit2,'String');year=str2num(nian);month=str2num(yue);%找出各年12個(gè)月的天數(shù)form=1:12ifmod(year,4)==0&mod(year,100)~=0|mod(year,400)==0D=[312931303130313130313031];elseD=[312831303130313130313031];endY=D(1:m);end%定義初始值run=0;%閏年初始值ping=0;%平年初始值%計(jì)算從第一年到前一年的閏年和平年的個(gè)數(shù)forq=1:year-1if(mod(q,4)==0&mod(q,100)~=0)|mod(q,400)==0run=run+1;elseping=ping+1;endend%計(jì)算從第一年到當(dāng)年前一個(gè)月的天數(shù)S=366*run+365*ping;forp=1:month-1S=S+Y(p);end%獲得這個(gè)月的天數(shù)n=Y(month);A=zeros(n,1);S=S+1;%計(jì)算這個(gè)月的第一天是星期幾w=mod(S,7);fork=1:nA(w+k)=k;endT=[A(1:end);zeros(42-length(A),1)];%沒有日期用0代替set(handles.r1_edit,'String',num2str(T(1)));%顯示結(jié)果set(handles.r2_edit,'String',num2str(T(2)));set(handles.r3_edit,'String',num2str(T(3)));%以下類推,直到r40_edit(在此省略,但在M文獻(xiàn)上必須所有寫上)%_________________________________________________set(handles.r41_edit,'String',num2str(T(4)));set(handles.r42_edit,'String',num2str(T(5)));guidata(hObject,handles);第三章萬年歷的使用3.1運(yùn)營(yíng)單擊本M文獻(xiàn)編輯窗口中工具欄中的“運(yùn)營(yíng)”按鈕,或單擊GUIDE的輸出編輯器中的工具欄中的按鈕,創(chuàng)建功能GUI界面,如下圖3.2輸入在圖中輸入年份為“2023”,輸入月份為“2”,單擊“顯示星期”按鈕和“顯示日歷”按鈕,顯示結(jié)果如下圖3.3錯(cuò)誤警告若在“輸入月份”文本框中輸入的數(shù)字超過12,則會(huì)彈出警告對(duì)話框提醒錯(cuò)誤。例如輸入月份“13”,則彈出如下圖所示警告窗口。第四章改寫界面注意到上圖左上角名稱為“萬年歷”而不是“wannianli”,其實(shí)修改很簡(jiǎn)樸,只需在輸出編輯器界面中,單擊鼠標(biāo)右鍵,從彈出的快捷菜單中選擇“PropertyInspector”命令,打開界面屬性窗口。將窗口的標(biāo)題(Name屬性)設(shè)立為“萬年歷”,關(guān)閉該窗口,并運(yùn)營(yíng)界面,顯示結(jié)果就是創(chuàng)建的“萬年歷”窗口。在圖中輸入年份為“2023”,輸入月份為“6”,單擊“顯示星期”按鈕和“顯示日歷”按鈕,顯示結(jié)果就是所要?jiǎng)?chuàng)建的GUI界面。第五章結(jié)論、問題解決與改善5.1結(jié)論與討論:通過多次實(shí)驗(yàn),本程序進(jìn)行本月日歷的顯示及相應(yīng)的星期的結(jié)果符合事實(shí)。5.2問題解決:如出現(xiàn)界面數(shù)字混亂,也許是由于42個(gè)文本框沒有從上到下依次添加,可以互換編輯文本框位置,直到顯示的日歷符合事實(shí)為止。5.3可以加以改善的地方:1.可對(duì)GUI界面進(jìn)行適當(dāng)美化2.可增長(zhǎng)農(nóng)歷3.加如節(jié)日和農(nóng)歷節(jié)氣的顯示第六章心得體會(huì)目前流行的計(jì)算機(jī)日歷程序,比較典型的是Windows各版本中的日歷程序以及基礎(chǔ)于該程序所開發(fā)的各種應(yīng)用程序中的日歷程序。然而,這些程序都千篇一律的局限在一個(gè)很短的時(shí)間范圍內(nèi)。(Windows各個(gè)版本一般都局限在1980年至2099年這一范圍內(nèi)),但是,在很多情況下,特別是在眾多的科學(xué)研究領(lǐng)域中,一個(gè)時(shí)間跨度較大的日歷程序是很有參考價(jià)值的。
通過一個(gè)學(xué)期對(duì)數(shù)學(xué)軟件的學(xué)習(xí),我們學(xué)習(xí)了理論知識(shí),了解了MATLAB這個(gè)軟件,這些知識(shí)都為我們的下一步學(xué)習(xí)打下了堅(jiān)實(shí)的基礎(chǔ)。通過課程設(shè)計(jì),一方面是為了檢查我們一個(gè)學(xué)期來我們學(xué)習(xí)的成果,另一方面也是為了讓我們進(jìn)一步的掌握和運(yùn)用它,同時(shí)也讓我們認(rèn)清自己的局限性之處和薄弱環(huán)節(jié),加以填補(bǔ)和加強(qiáng)。
通過本次的MATLAB設(shè)計(jì),讓我對(duì)MATLAB特別是GUI可視化圖形界面的設(shè)計(jì)功能有了進(jìn)一步的了解,結(jié)識(shí)到其功能的強(qiáng)大和豐富的內(nèi)置函數(shù)及工具箱。在MATLAB萬年歷的設(shè)計(jì)中,了解關(guān)于MATLAB圖形用戶界面的部分空間的使用方法,運(yùn)用MATLAB的GUI提供的很多實(shí)用控件,方便用于設(shè)計(jì)自己的圖形界面。在萬年歷的編寫過程中也體會(huì)到了做事情一頂要細(xì)心、認(rèn)真。更加知道了要掌握好基礎(chǔ)知識(shí)。尚有體會(huì)到了成功的感覺!通過本項(xiàng)課程設(shè)計(jì)也培養(yǎng)了我獨(dú)立思考、
綜合運(yùn)用所學(xué)有關(guān)相應(yīng)知識(shí)的能力。參考文獻(xiàn)【1】楊德平、趙維加、管殿柱.MATLAB基礎(chǔ)教程.機(jī)械工業(yè)出版社.2023.11【2】施曉紅、周佳.精通GUI圖形界面教程[M].北京:北京理工大學(xué)出版社.2023.【3】羅華飛.MATLABGUI設(shè)計(jì)學(xué)習(xí)手記[M].北京:北京航空航天大學(xué)出版社.2023.8.1
附錄:程序源代碼functionvarargout=wannianli(varargin)%WANNIANLIMATLABcodeforwannianli.fig%WANNIANLI,byitself,createsanewWANNIANLIorraisestheexisting%singleton*.%%H=WANNIANLIreturnsthehandletoanewWANNIANLIorthehandleto%theexistingsingleton*.%%WANNIANLI('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinWANNIANLI.Mwiththegiveninputarguments.%%WANNIANLI('Property','Value',...)createsanewWANNIANLIorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforewannianli_OpeningFcngetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.Allinputsarepassedtowannianli_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpwannianli%LastModifiedbyGUIDEv2.517-May-202321:12:01%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@wannianli_OpeningFcn,...'gui_OutputFcn',@wannianli_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---Executesjustbeforewannianliismadevisible.functionwannianli_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstowannianli(seeVARARGIN)%Choosedefaultcommandlineoutputforwannianlihandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakeswannianliwaitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfunctionarereturnedtothecommandline.functionvarargout=wannianli_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Getdefaultcommandlineoutputfromhandlesstructurevarargout{1}=handles.output;functionnian_edit1_Callback(hObject,eventdata,handles)%hObjecthandletonian_edit1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofnian_edit1astext%str2double(get(hObject,'String'))returnscontentsofnian_edit1asadoubleinput=str2num(get(hObject,'String'));if(isempty(input))set(hObject,'String','0')endguidata(hObject,handles);%---Executesduringobjectcreation,aftersettingallproperties.functionnian_edit1_CreateFcn(hObject,eventdata,handles)%hObjecthandletonian_edit1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');end%---Executesonbuttonpressinzhou_pushbutton1.functionzhou_pushbutton1_Callback(hObject,eventdata,handles)%hObjecthandletozhou_pushbutton1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)h={'日';'一';'二';'三';'四';'五';'六'};set(handles.xingqi_text4,'String',h);guidata(hObject,handles);functionr1_edit_Callback(hObject,eventdata,handles)%hObjecthandletor1_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr1_editastext%str2double(get(hObject,'String'))returnscontentsofr1_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr1_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor1_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr2_edit_Callback(hObject,eventdata,handles)%hObjecthandletor2_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr2_editastext%str2double(get(hObject,'String'))returnscontentsofr2_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr2_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor2_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr3_edit_Callback(hObject,eventdata,handles)%hObjecthandletor3_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr3_editastext%str2double(get(hObject,'String'))returnscontentsofr3_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr3_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor3_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr4_edit_Callback(hObject,eventdata,handles)%hObjecthandletor4_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr4_editastext%str2double(get(hObject,'String'))returnscontentsofr4_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr4_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor4_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr5_edit_Callback(hObject,eventdata,handles)%hObjecthandletor5_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr5_editastext%str2double(get(hObject,'String'))returnscontentsofr5_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr5_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor5_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr6_edit_Callback(hObject,eventdata,handles)%hObjecthandletor6_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr6_editastext%str2double(get(hObject,'String'))returnscontentsofr6_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr6_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor6_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr7_edit_Callback(hObject,eventdata,handles)%hObjecthandletor7_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr7_editastext%str2double(get(hObject,'String'))returnscontentsofr7_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr7_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor7_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr8_edit_Callback(hObject,eventdata,handles)%hObjecthandletor8_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr8_editastext%str2double(get(hObject,'String'))returnscontentsofr8_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr8_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor8_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr9_edit_Callback(hObject,eventdata,handles)%hObjecthandletor9_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr9_editastext%str2double(get(hObject,'String'))returnscontentsofr9_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr9_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor9_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr10_edit_Callback(hObject,eventdata,handles)%hObjecthandletor10_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr10_editastext%str2double(get(hObject,'String'))returnscontentsofr10_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr10_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor10_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr11_edit_Callback(hObject,eventdata,handles)%hObjecthandletor11_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr11_editastext%str2double(get(hObject,'String'))returnscontentsofr11_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr11_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor11_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr12_edit_Callback(hObject,eventdata,handles)%hObjecthandletor12_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr12_editastext%str2double(get(hObject,'String'))returnscontentsofr12_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr12_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor12_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr13_edit_Callback(hObject,eventdata,handles)%hObjecthandletor13_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr13_editastext%str2double(get(hObject,'String'))returnscontentsofr13_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr13_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor13_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr14_edit_Callback(hObject,eventdata,handles)%hObjecthandletor14_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr14_editastext%str2double(get(hObject,'String'))returnscontentsofr14_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr14_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor14_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr15_edit_Callback(hObject,eventdata,handles)%hObjecthandletor15_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr15_editastext%str2double(get(hObject,'String'))returnscontentsofr15_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr15_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor15_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr16_edit_Callback(hObject,eventdata,handles)%hObjecthandletor16_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr16_editastext%str2double(get(hObject,'String'))returnscontentsofr16_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr16_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor16_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr17_edit_Callback(hObject,eventdata,handles)%hObjecthandletor17_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr17_editastext%str2double(get(hObject,'String'))returnscontentsofr17_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr17_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor17_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr18_edit_Callback(hObject,eventdata,handles)%hObjecthandletor18_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr18_editastext%str2double(get(hObject,'String'))returnscontentsofr18_editasadouble%---Executesduringobjectcreation,aftersettingallproperties.functionr18_edit_CreateFcn(hObject,eventdata,handles)%hObjecthandletor18_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionr19_edit_Callback(hObject,eventdata,handles)%hObjecthandletor19_edit(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofr19_editastext%str2double(get(hObje
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 贛南科技學(xué)院《計(jì)算機(jī)網(wǎng)絡(luò)安全》2023-2024學(xué)年第一學(xué)期期末試卷
- 2022年三年級(jí)下冊(cè)小學(xué)生期末評(píng)語(yǔ)(17篇)
- 七年級(jí)語(yǔ)文上冊(cè)第四單元寫作思路要清晰新人教版
- 三年級(jí)數(shù)學(xué)上冊(cè)一混合運(yùn)算過河說課稿北師大版
- 三年級(jí)科學(xué)下冊(cè)第一單元植物的生長(zhǎng)變化第3課我們先看到了根教學(xué)材料教科版
- 小學(xué)生宿舍內(nèi)務(wù)管理制度
- 死因制度培訓(xùn)課件
- 2021年衛(wèi)生招聘(公共衛(wèi)生管理)考試題庫(kù)(帶答案)
- 醫(yī)生輸血培訓(xùn)課件
- 同軸電纜接頭制作(最終版)
- 債務(wù)糾紛證明范本圖片
- 中醫(yī)基礎(chǔ)理論期末考試題
- 安全科學(xué)導(dǎo)論知到章節(jié)答案智慧樹2023年中國(guó)礦業(yè)大學(xué)(北京)
- 管理文秘與公文寫作知到章節(jié)答案智慧樹2023年山東師范大學(xué)
- 棒球訓(xùn)練指南
- 學(xué)前教育基礎(chǔ)綜合(心理學(xué))考試復(fù)習(xí)題庫(kù)(含答案)
- 《北京的春節(jié)》說課課件
- 二次元操作規(guī)范
- (完整)社區(qū)工作者綜合能力測(cè)試真題及答案
- 爭(zhēng)做文明學(xué)生-創(chuàng)建文明班級(jí)
- MINICEX考核方式詳解
評(píng)論
0/150
提交評(píng)論