📄 helpf.m
字号:
function varargout = helpf(varargin)% HELPF M-file for helpf.fig% HELPF, by itself, creates a new HELPF or raises the existing% singleton*.%% H = HELPF returns the handle to a new HELPF or the handle to% the existing singleton*.%% HELPF('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in HELPF.M with the given input arguments.%% HELPF('Property','Value',...) creates a new HELPF or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before helpf_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to helpf_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 the response to help helpf% Last Modified by GUIDE v2.5 11-Apr-2008 10:57:56% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @helpf_OpeningFcn, ... 'gui_OutputFcn', @helpf_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []);if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1});endif 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 helpf is made visible.function helpf_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 helpf (see VARARGIN)% Choose default command line output for helpfhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes helpf wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = helpf_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 structurevarargout{1} = handles.output;% --- Executes on button press in help_1.function help_1_Callback(hObject, eventdata, handles)% hObject handle to help_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)cla;axis([0 25 0 28]);text(1,18,'\fontsize{15}\bf 有事请联系——马跃同学:13654681049');text(1,21,'\fontsize{15}\bf 工作组人员: 马跃 张倩 王睿 ');text(1,24,'\fontsize{20}\bf 本程序编写环境——MATLAB 7.0');% --- Executes on button press in help_3.function help_3_Callback(hObject, eventdata, handles)% hObject handle to help_3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)cla;axis([0 28 0 28]);text(0,24,'\fontsize{15}\bf 此程序可模拟Galtor板钉问题');text(0,22,'\fontsize{13}\bf 模拟包括三个部分:二项分布,Possion分布和几何分布');text(0,20,'\fontsize{12}\bf 1、二项分布:用户可输入小球数目和小球落入右部的概率,程序 ');text(0,18,'\fontsize{12}\bf 根据所给数值模拟小球下落过程,同时有理论值和实际值的比较 ');text(0,16,'\fontsize{12}\bf 2、Possion分布:根据用户给出的数据模拟Possion图');text(0,14,'\fontsize{12}\bf 3、几何分布:根据用户给出的数据模拟几何分布图');% --- Executes on button press in help_4.function help_4_Callback(hObject, eventdata, handles)% hObject handle to help_4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)cla;axis([0 28 0 28]);text(0,24,'\fontsize{12}\bf 模拟过程可能需要较长时间(特别当小球数目较大时),');text(0,22,'\fontsize{12}\bf 请耐心等待');% --- Executes on button press in help_6.function help_6_Callback(hObject, eventdata, handles)% hObject handle to help_6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)cla;axis([0 28 0 28]);;% --- Executes on button press in help_7.function help_7_Callback(hObject, eventdata, handles)% hObject handle to help_7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)cla;axis([0 28 0 28]);text(0,24,'\fontsize{20}\bf 请根据提示内容输入正确的数字');text(0,20,'\fontsize{12}\bf 当输入的内容错误时(例如输入的概率P>1),');text(0,18,'\fontsize{12}\bf 本程序可给出错误提示,暂不执行程序,直到');text(0,16,'\fontsize{12}\bf 输入内容正确为止。每执行完一个功能后可按');text(0,14,'\fontsize{12}\bf 返回键返回上一级菜单,执行其他功能.');% --- Executes on button press in help_8.function help_8_Callback(hObject, eventdata, handles)% hObject handle to help_8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)close(helpf);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -