用MATLAB设计一个万年历_第1页
用MATLAB设计一个万年历_第2页
用MATLAB设计一个万年历_第3页
用MATLAB设计一个万年历_第4页
用MATLAB设计一个万年历_第5页
已阅读5页,还剩77页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

课程论文用MATLAB设计一个万年历课程数学软件学生姓名学号手机号码所在学院理学院所在班级信计1134任课教师提交时间2023年06月07日目录万年历的效果图………………………2第一章设计目的与规定...........................................................................................................31.1设计目的……………….………………………….31.2设计规定…………………………..3第二章GUI界面设计……………………………32.1打开GUI…………………………..32.2添加按钮控件…………………...42.3根据控件的属性及视觉效果做一定的修改……………………..52.4保存、添加功能函数………………………..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运营…………………..83.2输入…………………..83.3错误警告…………………………..9第四章改写界面….………………10第五章结论、问题解决及改善...............................................................................................105.1结论与讨论………………………..105.2问题解决……………………………105.3可以加以改善的地方…………………………10第六章心得体会…………………..11参考文献…………………..11附录:源程序代码……………………11万年历效果图第一章设计目的与规定:1.1设计目的:通过万年历程序的设计,培养学生综合运用MATLAB进行程序设计的能力,加强函数的运用,提高软件系统分析能力和程序文档建立、归纳总结的能力,培养学生运用系统提供的标准函数及典型算法进行设计,开发应用软件。

通过本项课程设计,可以培养独立思考、

综合运用所学有关相应知识的能力,能更好的巩固《数学软件》课程学习的内容,掌握

GUI界面设计的基本方法,更加了解了MATLAB的好处和其可用性!

1.2设计规定:设计一个万年历GUI界面,其界面布局如上图,涉及“输入年份”、“输入月份”、“显示星期”、“显示日历”等控件。在界面上任意输入某个具体年份和月份,单击按钮即可显示本月的日历及其相应的星期(0表达没有数字日期)。第二章GUI界面设计:2.1打开GUI输入Guide回车或者在工具栏上点击图标打开Guide窗口:2.2添加按钮控件1、选取5个静态文本控件,用来定义“输入年份”、“输入月份”、“星期”、“当月日历显示区”,以及显示每周的“日”、“一”、“二”、“三”、“四”、“五”、“六”;2、选取两个pushbutton按钮空间用来定义“显示星期”、“显示日历”;3、添加两个编辑文本框控件用来输入具体的数字年份和月份;4、添加42个编辑文本框控件,用来显示具体的日期。(具体摆放如下图)2.3根据控件的属性及视觉效果做一定的修改1、双击“输入年份”、“输入月份”、“星期”和“当月日历显示区”这4个静态文本框,在“String”文本框中输入相应的中文,将字体大小“FontSize”设立为20,其他默认即可。2、对于“星期”下方的静态文本框,“String”文本框中不输入任何内容,将字体大小“FontSize”设立为25,在“Tag”文本框中输入“xingqi_text4”。3、对于输入年份和月份的编辑文本框,在“String”文本框中输入0,将字体大小“FontSize”设立为18,在“Tag”文本框中分别输入“nian_edit1”和“yue_edit2”。4、对于两个pushbutton按钮,在“String”文本框中分别输入“显示星期”和“显示日期”,将字体大小“FontSize”都设立为20,在“Tag”文本框中分别输入“zhou_pushbutton1”和“rili_pushbutton2”。5、对于42个编辑文本框,一方面将“Enable”属性中的“on”设立为“inactive”,使其转为静态文本框,并且保持控件的高亮状态;另一方面,在“String”文本框中都不输入任何内容;最后在“Tag”文本框中从左到右、按列依次输入“r1_edit”、“r2_edit”、···、“r42_edit”。2.4保存、添加功能函数把做好的按钮及静态文本框保存为“wannianli.fig”后自动弹出Editor的M文本,然后对相应的控件添加功能函数。以下是相应控件的功能函数的代码。(单击工具栏中的按钮可快速跳转到各个控件的回调函数)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','警告')%显示警告信息库endguidata(hObject,handles);2.4.3在“zhou_pushbutton1_Callback”中编写代码functionzhou_pushbutton1_Callback(hObject,eventdata,handles)%添加如下程序:h={'日';'一';'二';'三';'四';'五';'六'};%显示结果set(handles.xingqi_text4,'String',h);%更新结构体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个月的天数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;%平年初始值%计算从第一年到前一年的闰年和平年的个数forq=1:year-1if(mod(q,4)==0&mod(q,100)~=0)|mod(q,400)==0run=run+1;elseping=ping+1;endend%计算从第一年到当年前一个月的天数S=366*run+365*ping;forp=1:month-1S=S+Y(p);end%获得这个月的天数n=Y(month);A=zeros(n,1);S=S+1;%计算这个月的第一天是星期几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)));%显示结果set(handles.r2_edit,'String',num2str(T(2)));set(handles.r3_edit,'String',num2str(T(3)));%以下类推,直到r40_edit(在此省略,但在M文献上必须所有写上)%_________________________________________________set(handles.r41_edit,'String',num2str(T(4)));set(handles.r42_edit,'String',num2str(T(5)));guidata(hObject,handles);第三章万年历的使用3.1运营单击本M文献编辑窗口中工具栏中的“运营”按钮,或单击GUIDE的输出编辑器中的工具栏中的按钮,创建功能GUI界面,如下图3.2输入在图中输入年份为“2023”,输入月份为“2”,单击“显示星期”按钮和“显示日历”按钮,显示结果如下图3.3错误警告若在“输入月份”文本框中输入的数字超过12,则会弹出警告对话框提醒错误。例如输入月份“13”,则弹出如下图所示警告窗口。第四章改写界面注意到上图左上角名称为“万年历”而不是“wannianli”,其实修改很简朴,只需在输出编辑器界面中,单击鼠标右键,从弹出的快捷菜单中选择“PropertyInspector”命令,打开界面属性窗口。将窗口的标题(Name属性)设立为“万年历”,关闭该窗口,并运营界面,显示结果就是创建的“万年历”窗口。在图中输入年份为“2023”,输入月份为“6”,单击“显示星期”按钮和“显示日历”按钮,显示结果就是所要创建的GUI界面。第五章结论、问题解决与改善5.1结论与讨论:通过多次实验,本程序进行本月日历的显示及相应的星期的结果符合事实。5.2问题解决:如出现界面数字混乱,也许是由于42个文本框没有从上到下依次添加,可以互换编辑文本框位置,直到显示的日历符合事实为止。5.3可以加以改善的地方:1.可对GUI界面进行适当美化2.可增长农历3.加如节日和农历节气的显示第六章心得体会目前流行的计算机日历程序,比较典型的是Windows各版本中的日历程序以及基础于该程序所开发的各种应用程序中的日历程序。然而,这些程序都千篇一律的局限在一个很短的时间范围内。(Windows各个版本一般都局限在1980年至2099年这一范围内),但是,在很多情况下,特别是在众多的科学研究领域中,一个时间跨度较大的日历程序是很有参考价值的。

通过一个学期对数学软件的学习,我们学习了理论知识,了解了MATLAB这个软件,这些知识都为我们的下一步学习打下了坚实的基础。通过课程设计,一方面是为了检查我们一个学期来我们学习的成果,另一方面也是为了让我们进一步的掌握和运用它,同时也让我们认清自己的局限性之处和薄弱环节,加以填补和加强。

通过本次的MATLAB设计,让我对MATLAB特别是GUI可视化图形界面的设计功能有了进一步的了解,结识到其功能的强大和丰富的内置函数及工具箱。在MATLAB万年历的设计中,了解关于MATLAB图形用户界面的部分空间的使用方法,运用MATLAB的GUI提供的很多实用控件,方便用于设计自己的图形界面。在万年历的编写过程中也体会到了做事情一顶要细心、认真。更加知道了要掌握好基础知识。尚有体会到了成功的感觉!通过本项课程设计也培养了我独立思考、

综合运用所学有关相应知识的能力。参考文献【1】杨德平、赵维加、管殿柱.MATLAB基础教程.机械工业出版社.2023.11【2】施晓红、周佳.精通GUI图形界面教程[M].北京:北京理工大学出版社.2023.【3】罗华飞.MATLABGUI设计学习手记[M].北京:北京航空航天大学出版社.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等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论