V带传动电算程序Word文件下载.docx

上传人:b****3 文档编号:16702304 上传时间:2022-11-25 格式:DOCX 页数:42 大小:19.23KB
下载 相关 举报
V带传动电算程序Word文件下载.docx_第1页
第1页 / 共42页
V带传动电算程序Word文件下载.docx_第2页
第2页 / 共42页
V带传动电算程序Word文件下载.docx_第3页
第3页 / 共42页
V带传动电算程序Word文件下载.docx_第4页
第4页 / 共42页
V带传动电算程序Word文件下载.docx_第5页
第5页 / 共42页
点击查看更多>>
下载资源
资源描述

V带传动电算程序Word文件下载.docx

《V带传动电算程序Word文件下载.docx》由会员分享,可在线阅读,更多相关《V带传动电算程序Word文件下载.docx(42页珍藏版)》请在冰豆网上搜索。

V带传动电算程序Word文件下载.docx

%functionnamedCALLBACKinKONG.Mwiththegiveninputarguments.

Property'

'

Value'

...)createsanewKONGorraisesthe

%existingsingleton*.Startingfromtheleft,propertyvaluepairsare

%appliedtotheGUIbeforekong_OpeningFunctiongetscalled.An

%unrecognizedpropertynameorinvalidvaluemakespropertyapplication

%stop.Allinputsarepassedtokong_OpeningFcnviavarargin.

%*SeeGUIOptionsonGUIDE'

sToolsmenu.Choose"

GUIallowsonlyone

%instancetorun(singleton)"

.

%Seealso:

GUIDE,GUIDATA,GUIHANDLES

%Copyright2002-2003TheMathWorks,Inc.

%Edittheabovetexttomodifytheresponsetohelpkong

%LastModifiedbyGUIDEv2.510-Nov-201223:

48:

30

%Begininitializationcode-DONOTEDIT

gui_Singleton=1;

gui_State=struct('

gui_Name'

mfilename,...

'

gui_Singleton'

gui_Singleton,...

gui_OpeningFcn'

@kong_OpeningFcn,...

gui_OutputFcn'

@kong_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

%---Executesjustbeforekongismadevisible.

functionkong_OpeningFcn(hObject,eventdata,handles,varargin)

%Thisfunctionhasnooutputargs,seeOutputFcn.

%hObjecthandletofigure

%eventdatareserved-tobedefinedinafutureversionofMATLAB

%handlesstructurewithhandlesanduserdata(seeGUIDATA)

%varargincommandlineargumentstokong(seeVARARGIN)

%Choosedefaultcommandlineoutputforkong

handles.output=hObject;

%Updatehandlesstructure

guidata(hObject,handles);

%UIWAITmakeskongwaitforuserresponse(seeUIRESUME)

%uiwait(handles.figure1);

%---Outputsfromthisfunctionarereturnedtothecommandline.

functionvarargout=kong_OutputFcn(hObject,eventdata,handles)

%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);

%Getdefaultcommandlineoutputfromhandlesstructure

varargout{1}=handles.output;

functionIn_P0_Callback(hObject,eventdata,handles)

%hObjecthandletoIn_P0(seeGCBO)

%Hints:

get(hObject,'

String'

)returnscontentsofIn_P0astext

%str2double(get(hObject,'

))returnscontentsofIn_P0asadouble

%---Executesduringobjectcreation,aftersettingallproperties.

functionIn_P0_CreateFcn(hObject,eventdata,handles)

%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled

%Hint:

editcontrolsusuallyhaveawhitebackgroundonWindows.

%SeeISPCandCOMPUTER.

ifispc

set(hObject,'

BackgroundColor'

white'

);

get(0,'

defaultUicontrolBackgroundColor'

));

functionIn_n_Callback(hObject,eventdata,handles)

%hObjecthandletoIn_n(seeGCBO)

)returnscontentsofIn_nastext

))returnscontentsofIn_nasadouble

functionIn_n_CreateFcn(hObject,eventdata,handles)

functionIn_i_Callback(hObject,eventdata,handles)

%hObjecthandletoIn_i(seeGCBO)

)returnscontentsofIn_iastext

))returnscontentsofIn_iasadouble

i=str2double(get(handles.In_i,'

ifi>

=2

Ki=1.1373;

elseifi>

=1.52

Ki=1.1202;

=1.35

Ki=1.1036;

=1.25

Ki=1.0875;

=1.19

Ki=1.0719;

=1.13

Ki=1.0567;

=1.09

Ki=1.0419;

=1.05

Ki=1.0276;

=1.02

Ki=1.0136;

=1

Ki=1.0000;

end

set(handles.Out_Ki,'

num2str(Ki));

functionIn_i_CreateFcn(hObject,eventdata,handles)

%---Executesonselectionchangeinpopupmenu1.

functionpopupmenu1_Callback(hObject,eventdata,handles)

%hObjecthandletopopupmenu1(seeGCBO)

contents=get(hObject,'

)returnspopupmenu1contentsascellarray

%contents{get(hObject,'

)}returnsselecteditemfrompopupmenu1

functionpopupmenu1_CreateFcn(hObject,eventdata,handles)

popupmenucontrolsusuallyhaveawhitebackgroundonWindows.

%---Executesonselectionchangeinpopupmenu2.

functionpopupmenu2_Callback(hObject,eventdata,handles)

%hObjecthandletopopupmenu2(seeGCBO)

)returnspopupmenu2contentsascellarray

)}returnsselecteditemfrompopupmenu2

functionpopupmenu2_CreateFcn(hObject,eventdata,handles)

%---Executesonselectionchangeinpopupmenu3.

functionpopupmenu3_Callback(hObject,eventdata,handles)

%hObjecthandletopopupmenu3(seeGCBO)

)returnspopupmenu3contentsascellarray

)}returnsselecteditemfrompopupmenu3

functionpopupmenu3_CreateFcn(hObject,eventdata,handles)

functionedit4_Callback(hObject,eventdata,handles)

%hObjecthandletoedit4(seeGCBO)

)returnscontentsofedit4astext

))returnscontentsofedit4asadouble

functionedit4_CreateFcn(hObject,eventdata,handles)

functionOut_Pd_Callback(hObject,eventdata,handles)

%hObjecthandletoOut_Pd(seeGCBO)

%handlesstructurewithhandlesanduserdata(se

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > PPT模板 > 其它模板

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1