版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年新媒体运营与推广案例解析
- 2026年药师转正定级药品管理专项题库
- 2026年品牌用户生成内容UGC引导与激励考核
- 迎新汇演小学生演讲稿
- 2026年社会稳定风险评估工作规范测试试题
- 2026年个人信息保护日知识竞赛抢答
- 2026年排球教练员招聘面试扣球技术教学与拦网配合
- 梯队人才培训心得
- 基层健康教育服务品牌推广
- 基因驱动技术的生态风险与伦理边界
- 2024年同等学力申硕英语真题及答案
- JGJ79-2012 建筑地基处理技术规范
- 四川移动公司招聘笔试题
- 《机车乘务作业》 课件 04途中作业
- DB 5309-T 66-2023滇鸡血藤林下种植技术规程
- 《财政学》第七章 财政收入总论
- 产品供货方案、售后服务方案
- 《无人机操控飞行》课件 情境5 多旋翼无人机水平8字飞行
- 第九章骨关节与软组织课件
- 社会学与中国社会学习通课后章节答案期末考试题库2023年
- 城市道路交通规划设计规范
评论
0/150
提交评论