下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026志愿者面试题型及答案
- 设备维修进度报告及费用结算通知函7篇范文
- 2026电工面试题及答案
- 2026防空办面试题目及答案
- 2026黑除恶面试题目及答案
- 2026年期货从业期货交易规则专项题库含答案及解析
- 2026年福建农林大学冷冻电镜中心蛋白表达纯化平台技术服务人员招聘3人笔试模拟试题及答案详解
- 吉安市井开区保育院2026年招聘夜班安保员笔试备考试题及答案详解
- 2026江苏南通市市级机关第一幼儿园招聘5人笔试备考题库及答案详解
- 2026乌鲁木齐市第五十八中学教师招聘(二)笔试模拟试题及答案详解
- ISO9001标准深度解析
- 2025河北雄安新区安新县公共服务局招聘专项岗位人员180人第二批考试参考试题及答案解析
- 非药物性镇痛分娩技术应用
- 邮政内部竞聘考试题及答案
- 2025年四川选调生考试申论试题与答案
- 车辆洗车槽采购合同范本
- 交警培训课件 辅警
- 《羊饲养与疫病防》课件
- DB13-T 5931-2024 珍珠棉生产企业安全生产技术条件
- 2024年全国各地中考语文真题分类汇编【第二辑】专题09 散文阅读(含答案)
- DL-T5842-2021110kV~750kV架空输电线路铁塔基础施工工艺导则
评论
0/150
提交评论