matlabguifunctiondrawWord文件下载.docx
《matlabguifunctiondrawWord文件下载.docx》由会员分享,可在线阅读,更多相关《matlabguifunctiondrawWord文件下载.docx(9页珍藏版)》请在冰豆网上搜索。
![matlabguifunctiondrawWord文件下载.docx](https://file1.bdocx.com/fileroot1/2023-2/5/8ab72638-198f-4536-90e8-cce887f3d475/8ab72638-198f-4536-90e8-cce887f3d4751.gif)
,'
Value'
...)createsanewBJ10183orraisesthe
%existingsingleton*.Startingfromtheleft,propertyvaluepairsare
%appliedtotheGUIbeforebj10183_OpeningFcngetscalled.An
%unrecognizedpropertynameorinvalidvaluemakespropertyapplication
%stop.Allinputsarepassedtobj10183_OpeningFcnviavarargin.
%*SeeGUIOptionsonGUIDE'
sToolsmenu.Choose"
GUIallowsonlyone
%instancetorun(singleton)"
.
%Seealso:
GUIDE,GUIDATA,GUIHANDLES
%Edittheabovetexttomodifytheresponsetohelpbj10183
%LastModifiedbyGUIDEv2.518-Oct-201722:
22:
27
%Begininitializationcode-DONOTEDIT
gui_Singleton=1;
gui_State=struct('
gui_Name'
mfilename,...
'
gui_Singleton'
gui_Singleton,...
gui_OpeningFcn'
@bj10183_OpeningFcn,...
gui_OutputFcn'
@bj10183_OutputFcn,...
gui_LayoutFcn'
[],...
gui_Callback'
[]);
ifnargin&
&
ischar(varargin{1})
gui_State.gui_Callback=str2func(varargin{1});
end
ifnargout
[varargout{1:
nargout}]=gui_mainfcn(gui_State,varargin{:
});
else
gui_mainfcn(gui_State,varargin{:
%Endinitializationcode-DONOTEDIT
%---Executesjustbeforebj10183ismadevisible.
functionbj10183_OpeningFcn(hObject,eventdata,handles,varargin)
%Thisfunctionhasnooutputargs,seeOutputFcn.
%hObjecthandletofigure
%eventdatareserved-tobedefinedinafutureversionofMATLAB
%handlesstructurewithhandlesanduserdata(seeGUIDATA)
%varargincommandlineargumentstobj10183(seeVARARGIN)
%Choosedefaultcommandlineoutputforbj10183
handles.output=hObject;
%Updatehandlesstructure
guidata(hObject,handles);
%UIWAITmakesbj10183waitforuserresponse(seeUIRESUME)
%uiwait(handles.figure1);
%---Outputsfromthisfunctionarereturnedtothecommandline.
functionvarargout=bj10183_OutputFcn(hObject,eventdata,handles)
%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);
%Getdefaultcommandlineoutputfromhandlesstructure
varargout{1}=handles.output;
functionedit1_Callback(hObject,eventdata,handles)
%hObjecthandletoedit1(seeGCBO)
%Hints:
get(hObject,'
String'
)returnscontentsofedit1astext
%str2double(get(hObject,'
))returnscontentsofedit1asadouble
%---Executesduringobjectcreation,aftersettingallproperties.
functionedit1_CreateFcn(hObject,eventdata,handles)
%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled
%Hint:
editcontrolsusuallyhaveawhitebackgroundonWindows.
%SeeISPCandCOMPUTER.
ifispc&
isequal(get(hObject,'
BackgroundColor'
),get(0,'
defaultUicontrolBackgroundColor'
))
set(hObject,'
white'
);
%---Executesonselectionchangeinhpopup.
functionhpopup_Callback(hObject,eventdata,handles)
%hObjecthandletohpopup(seeGCBO)
contents=cellstr(get(hObject,'
))returnshpopupcontentsascellarray
%contents{get(hObject,'
)}returnsselecteditemfromhpopup
COMM(handles.hedit,handles.hpopup,handles.hlist);
functionhpopup_CreateFcn(hObject,eventdata,handles)
popupmenucontrolsusuallyhaveawhitebackgroundonWindows.
%---Executesonbuttonpressinhpush1.
functionhpush1_Callback(hObject,eventdata,handles)
%hObjecthandletohpush1(seeGCBO)
%---Executesonbuttonpressinpushbutton2.
functionpushbutton2_Callback(hObject,eventdata,handles)
%hObjecthandletopushbutton2(seeGCBO)
close(bj10183);
%---Executesonselectionchangeinlistbox1.
functionlistbox1_Callback(hObject,eventdata,handles)
%hObjecthandletolistbox1(seeGCBO)
))returnslistbox1contentsascellarray
)}returnsselecteditemfromlistbox1
functionlistbox1_CreateFcn(hObject,eventdata,handles)
listboxcontrolsusuallyhaveawhitebackgroundonWindows.
%---Executesonselectionchangeinhlist.
functionhlist_Callback(hObject,eventdata,handles)
%hObjecthandletohlist(seeGCBO)
))returnshlistcontentsascellarray
)}returnsselecteditemfromhlist
functionhlist_CreateFcn(hObject,eventdata,handles)
functionhedit_Callback(hObject,eventdata,handles)
%hObjecthandletohedit(seeGCBO)
)returnscontentsofheditastext
))returnscontentsofheditasadouble
functionhedit_CreateFcn(hObject,eventdata,handles)