




已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
V带传动电算程序带传动电算程序 作者 作者 XXX 学号 学号 1100800 xxx 班级 班级 1008xxx Matlab 程序 程序 function varargout kong varargin KONG M file for kong fig KONG by itself creates a new KONG or raises the existing singleton H KONG returns the handle to a new KONG or the handle to the existing singleton KONG CALLBACK hObject eventData handles calls the local function named CALLBACK in KONG M with the given input arguments KONG Property Value creates a new KONG or raises the existing singleton Starting from the left property value pairs are applied to the GUI before kong OpeningFunction gets called An unrecognized property name or invalid value makes property application stop All inputs are passed to kong OpeningFcn via varargin See GUI Options on GUIDE s Tools menu Choose GUI allows only one instance to run singleton See also GUIDE GUIDATA GUIHANDLES Copyright 2002 2003 The MathWorks Inc Edit the above text to modify the response to help kong Last Modified by GUIDE v2 5 10 Nov 2012 23 48 30 Begin initialization code DO NOT EDIT 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 if nargin end if nargout varargout 1 nargout gui mainfcn gui State varargin else gui mainfcn gui State varargin end End initialization code DO NOT EDIT Executes just before kong is made visible function kong OpeningFcn hObject eventdata handles varargin This function has no output args see OutputFcn hObject handle to figure eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA varargin command line arguments to kong see VARARGIN Choose default command line output for kong handles output hObject Update handles structure guidata hObject handles UIWAIT makes kong wait for user response see UIRESUME uiwait handles figure1 Outputs from this function are returned to the command line function varargout kong OutputFcn hObject eventdata handles varargout cell array for returning output args see VARARGOUT hObject handle to figure eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Get default command line output from handles structure varargout 1 handles output function In P0 Callback hObject eventdata handles hObject handle to In P0 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of In P0 as text str2double get hObject String returns contents of In P0 as a double Executes during object creation after setting all properties function In P0 CreateFcn hObject eventdata handles hObject handle to In P0 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function In n Callback hObject eventdata handles hObject handle to In n see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of In n as text str2double get hObject String returns contents of In n as a double Executes during object creation after setting all properties function In n CreateFcn hObject eventdata handles hObject handle to In n see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function In i Callback hObject eventdata handles hObject handle to In i see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of In i as text str2double get hObject String returns contents of In i as a double i str2double get handles In i String if i 2 Ki 1 1373 elseif i 1 52 Ki 1 1202 elseif i 1 35 Ki 1 1036 elseif i 1 25 Ki 1 0875 elseif i 1 19 Ki 1 0719 elseif i 1 13 Ki 1 0567 elseif i 1 09 Ki 1 0419 elseif i 1 05 Ki 1 0276 elseif i 1 02 Ki 1 0136 elseif i 1 Ki 1 0000 end set handles Out Ki String num2str Ki Executes during object creation after setting all properties function In i CreateFcn hObject eventdata handles hObject handle to In i see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on selection change in popupmenu1 function popupmenu1 Callback hObject eventdata handles hObject handle to popupmenu1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints contents get hObject String returns popupmenu1 contents as cell array contents get hObject Value returns selected item from popupmenu1 Executes during object creation after setting all properties function popupmenu1 CreateFcn hObject eventdata handles hObject handle to popupmenu1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint popupmenu controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on selection change in popupmenu2 function popupmenu2 Callback hObject eventdata handles hObject handle to popupmenu2 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints contents get hObject String returns popupmenu2 contents as cell array contents get hObject Value returns selected item from popupmenu2 Executes during object creation after setting all properties function popupmenu2 CreateFcn hObject eventdata handles hObject handle to popupmenu2 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint popupmenu controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on selection change in popupmenu3 function popupmenu3 Callback hObject eventdata handles hObject handle to popupmenu3 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints contents get hObject String returns popupmenu3 contents as cell array contents get hObject Value returns selected item from popupmenu3 Executes during object creation after setting all properties function popupmenu3 CreateFcn hObject eventdata handles hObject handle to popupmenu3 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint popupmenu controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function edit4 Callback hObject eventdata handles hObject handle to edit4 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of edit4 as text str2double get hObject String returns contents of edit4 as a double Executes during object creation after setting all properties function edit4 CreateFcn hObject eventdata handles hObject handle to edit4 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function Out Pd Callback hObject eventdata handles hObject handle to Out Pd see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of Out Pd as text str2double get hObject String returns contents of Out Pd as a double Executes during object creation after setting all properties function Out Pd CreateFcn hObject eventdata handles hObject handle to Out Pd see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on selection change in popupmenu6 function popupmenu6 Callback hObject eventdata handles hObject handle to popupmenu6 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints contents get hObject String returns popupmenu6 contents as cell array contents get hObject Value returns selected item from popupmenu6 Executes during object creation after setting all properties function popupmenu6 CreateFcn hObject eventdata handles hObject handle to popupmenu6 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint popupmenu controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function Out Ki Callback hObject eventdata handles hObject handle to Out Ki see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of Out Ki as text str2double get hObject String returns contents of Out Ki as a double Executes during object creation after setting all properties function Out Ki CreateFcn hObject eventdata handles hObject handle to Out Ki see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on button press in pushbutton1 function pushbutton1 Callback hObject eventdata handles hObject handle to pushbutton1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA axes handles Out pic MyImage imread KA jpg imshow MyImage function Attention Callback hObject eventdata handles hObject handle to Attention see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of Attention as text str2double get hObject String returns contents of Attention as a double Executes during object creation after setting all properties function Attention CreateFcn hObject eventdata handles hObject handle to Attention see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on selection change in Out dx function Out dx Callback hObject eventdata handles hObject handle to Out dx see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints contents get hObject String returns Out dx contents as cell array contents get hObject Value returns selected item from Out dx dx get hObject Value if dx 1 set handles Out Vmax String 25 set handles Out Kb String 0 0002925 set handles Out ddmin String 50 set handles Out m String 0 06 elseif dx 2 set handles Out Vmax String 25 set handles Out Kb String 0 0007725 set handles Out ddmin String 75 set handles Out m String 0 1 elseif dx 3 set handles Out Vmax String 25 set handles Out Kb String 0 0019875 set handles Out ddmin String 125 set handles Out m String 0 17 elseif dx 4 set handles Out Vmax String 25 set handles Out Kb String 0 005625 set handles Out ddmin String 200 set handles Out m String 0 3 elseif dx 5 set handles Out Vmax String 30 set handles Out Kb String 0 01995 set handles Out ddmin String 355 set handles Out m String 0 6 elseif dx 6 set handles Out Vmax String 30 set handles Out Kb String 0 03735 set handles Out ddmin String 500 set handles Out m String 0 9 end Executes during object creation after setting all properties function Out dx CreateFcn hObject eventdata handles hObject handle to Out dx see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint popupmenu controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end Executes on button press in pushbutton2 function pushbutton2 Callback hObject eventdata handles hObject handle to pushbutton2 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA axes handles Out pic Image imread belttype jpg imshow Image function Out v Callback hObject eventdata handles hObject handle to Out v see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of Out v as text str2double get hObject String returns contents of Out v as a double Executes during object creation after setting all properties function Out v CreateFcn hObject eventdata handles hObject handle to Out v see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function In dd1 Callback hObject eventdata handles hObject handle to In dd1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of In dd1 as text str2double get hObject String returns contents of In dd1 as a double dd1 str2double get handles In dd1 String n str2double get handles In n String Vmax str2double get handles Out Vmax String v 3 1415 dd1 n 60 1000 i str2double get handles In i String ddd2 i dd1 set handles Out v String num2str v set handles dd2 String num2str ddd2 if v Vmax set handles Attention String v is too huge Please decrease dd1 else set handles Attention String OK Please go on end Executes during object creation after setting all properties function In dd1 CreateFcn hObject eventdata handles hObject handle to In dd1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function edit14 Callback hObject eventdata handles hObject handle to edit14 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of edit14 as text str2double get hObject String returns contents of edit14 as a double Executes during object creation after setting all properties function edit14 CreateFcn hObject eventdata handles hObject handle to edit14 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function edit15 Callback hObject eventdata handles hObject handle to edit15 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints get hObject String returns contents of edit15 as text str2double get hObject String returns contents of edit15 as a double Executes during object creation after setting all properties function edit15 CreateFcn hObject eventdata handles hObject handle to edit15 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc set hObject BackgroundColor white else set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor end function dd2 Callback hObject eventdata handles hObject handle to dd2 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GU
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年福建省三明市城市建设发展集团有限公司招聘18人模拟试卷附答案详解(突破训练)
- 安全培训行业装修色调课件
- Brand KPIs for clean beauty Unna Brazil in Brazil-外文版培训课件(2025.9)
- 涂来涂去课件
- 2025年衢州市卫生健康委员会衢州市妇幼保健院招聘编外人员1人模拟试卷及一套参考答案详解
- 安全培训自考课件
- 2025广东广州市筑业城建有限公司招聘工作人员、人员考前自测高频考点模拟试题及答案详解(易错题)
- 涂料原材料知识培训课件
- 涂料专业知识培训活动课件
- 2025福建三明市清流县金星园建设发展有限公司招聘消防驾驶员2人考前自测高频考点模拟试题附答案详解(典型题)
- 2025至2030全球及中国InfiniBand行业发展趋势分析与未来投资战略咨询研究报告
- 2025年水资源利用与水资源安全保障体系构建与完善资源分析可行性研究报告
- 2025年下半年拜城县招聘警务辅助人员(260人)考试模拟试题及答案解析
- 广东省深圳市龙华区2024-2025学年一年级上册期中测试数学试卷(含答案)
- 宅基地争议申请书
- 2025年杭州上城区总工会公开招聘工会社会工作者9人笔试参考题库附答案解析
- 百师联盟2026届高三上学期9月调研考试数学试卷(含答案)
- 河南省百师联盟2025-2026学年高二上学期9月联考化学试题(A)含答案
- 重庆通信安全员c证题库及答案解析
- 颈椎骨折护理围手术期管理方案
- 2025年互联网+特殊教育行业研究报告及未来发展趋势预测
评论
0/150
提交评论