下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年物业经理年终总结范文(2篇)
- 车间设备管理培训课件
- 2026年老年友善医院创建工作计划范文
- 《利用轴对称进行设计》数学课件教案
- 2026年化工原理试题库及答案
- 车间班组级安全培训课件
- 斜弱视眼科学
- 电商平台需求规格说明书-通用版本
- GB/T 3372-2010拖拉机和农业、林业机械用轮辋系列
- 北京城市旅游故宫红色中国风PPT模板
- 经济学原理 第一章课件
- 安川伺服说明书
- 社会组织管理概论全套ppt课件(完整版)
- 酒精度检测原始记录
- 冷渣机检修工艺
- 建筑风水学培训
- SAP成本月结操作及标准成本估算
评论
0/150
提交评论