下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、function varargout = huatu(varargin)% HUATU MATLAB code for huatu.fig% HUATU, by itself, creates a new HUATU or raises the existing% singleton*.% H = HUATU returns the handle to a new HUATU or the handle to% the existing singleton*.% HUATU('CALLBACK',hObject,eventData,handles,.) calls the lo
2、cal% function named CALLBACK in HUATU.M with the given input arguments.% HUATU('Property','Value',.) creates a new HUATU or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before huatu_OpeningFcn gets called. An% unrecognized prop
3、erty name or invalid value makes property application% stop. All inputs are passed to huatu_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% Edit the above text to modify
4、the response to help huatu% Last Modified by GUIDE v2.5 15-Jan-2014 13:13:56% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, .'gui_Singleton', gui_Singleton, .'gui_OpeningFcn', huatu_OpeningFcn, .'gui_OutputFcn', hua
5、tu_OutputFcn, .'gui_LayoutFcn', , .'gui_Callback', );if nargin && ischar(varargin1) gui_State.gui_Callback = str2func(varargin1);endif nargout varargout1:nargout = gui_mainfcn(gui_State, varargin:);else gui_mainfcn(gui_State, varargin:);end% End initialization code - DO NOT E
6、DIT% - Executes just before huatu is made visible.function huatu_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 da
7、ta (see GUIDATA)% varargin command line arguments to huatu (see VARARGIN)% Choose default command line output for huatuhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes huatu wait for user response (see UIRESUME)% uiwait(handles.figure1);% - Outputs from thi
8、s function are returned to the command line.function varargout = huatu_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
9、and user data (see GUIDATA)% Get default command line output from handles structurevarargout1 = handles.output;% - 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 fut
10、ure version of MATLAB% handles structure with handles and user data (see GUIDATA)a=str2num(get(handles.edit1,'string');b=str2num(get(handles.edit2,'string');c=str2num(get(handles.edit3,'string');x=-10:1:10;hold on y=a*x.2+b*x+c; plot(x,y);% - Executes on button press in pushb
11、utton2.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)close allfunction edit1_Callback(hObject, eventdata, handles)% hObj
12、ect handle to edit1 (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 edit1 as text% str2double(get(hObject,'String') returns contents of edit1 as
13、a double% - Executes during object creation, after setting all properties.function edit1_CreateFcn(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called
14、% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor') set(hObject,'BackgroundColor','white');endfunction edit2_Callback(hObject, even
15、tdata, handles)% hObject handle to edit2 (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 edit2 as text% str2double(get(hObject,'String') returns
16、contents of edit2 as a double% - Executes during object creation, after setting all properties.function edit2_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after
17、all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor') set(hObject,'BackgroundColor','white');endfunction edit3_C
18、allback(hObject, eventdata, handles)% hObject handle to edit3 (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 edit3 as text% str2double(get(hObject,'String') returns contents of edit3 as a double% - Executes during object creation, after setting all properties.function edit3_CreateFcn(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLA
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 草食家畜饲养工安全技能考核试卷含答案
- 汽车吊司机安全宣教竞赛考核试卷含答案
- 井筒掘砌工发展趋势测试考核试卷含答案
- 中医养生与康复治疗
- 患者胃痛急慢性胃炎
- 护理人员职业倦怠研究
- TWI-4J-简介课件公开课获奖课件
- 贝优芬预防放射性皮炎的临床观察与护理
- 计算机与人工智能导论 课件 第15章 前沿技术与实践能力培养
- 2026年秋招:IT技术支持题库及答案
- T∕CIATCM 132-2025 名老中医经验传承信息系统基本功能规范
- 循证医学:创伤评分课件
- 设备管理员培训
- 贵妇膏产品培训课件
- 行动教育EMBA课程体系
- 遥感技术监测大气污染
- 2025黑龙江齐齐哈尔泰来镇第二次社区工作者招聘44人备考题库附答案
- 2025-2026学年沪教版七年级英语上册(全册)知识点梳理归纳
- 2026年畜牧业养殖公司畜牧技能等级(饲养员、兽医)评定管理制度
- 2025年10月25日西藏区直遴选笔试真题及答案解析
- 2025-2026学年华中师大版(2024)小学体育与健康二年级(全一册)教学设计(附目录P133)
评论
0/150
提交评论