⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mlp_iris_class.m

📁 classification using MLP with GUi
💻 M
📖 第 1 页 / 共 3 页
字号:
function varargout = MLP_Iris_Class(varargin)% MLP_IRIS_CLASS M-file for MLP_Iris_Class.fig%      MLP_IRIS_CLASS, by itself, creates a new MLP_IRIS_CLASS or raises the existing%      singleton*.%%      H = MLP_IRIS_CLASS returns the handle to a new MLP_IRIS_CLASS or the handle to%      the existing singleton*.%%      MLP_IRIS_CLASS('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in MLP_IRIS_CLASS.M with the given input arguments.%%      MLP_IRIS_CLASS('Property','Value',...) creates a new MLP_IRIS_CLASS or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before MLP_Iris_Class_OpeningFunction gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to MLP_Iris_Class_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 MLP_Iris_Class% Last Modified by GUIDE v2.5 16-Feb-2009 21:16:29% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @MLP_Iris_Class_OpeningFcn, ...                   'gui_OutputFcn',  @MLP_Iris_Class_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 MLP_Iris_Class is made visible.function MLP_Iris_Class_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 MLP_Iris_Class (see VARARGIN)% Choose default command line output for MLP_Iris_Classhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes MLP_Iris_Class wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = MLP_Iris_Class_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 pushbutton4.function pushbutton4_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton4 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)%allow the user to choose which settings to load[filename, pathname] = uigetfile('*.*', 'Choose the GUI settings file to load'); %construct the path name of the file to be loadedloadDataName = fullfile(pathname,filename);global aa = load(loadDataName)%% --------------------------------------------------------------------function set1_LR_Callback(hObject, eventdata, handles)% hObject    handle to set1_LR (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 set1_LR as text%        str2double(get(hObject,'String')) returns contents of set1_LR as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set1_LR_CreateFcn(hObject, eventdata, handles)% hObject    handle to set1_LR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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 set1_UR_Callback(hObject, eventdata, handles)% hObject    handle to set1_UR (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 set1_UR as text%        str2double(get(hObject,'String')) returns contents of set1_UR as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set1_UR_CreateFcn(hObject, eventdata, handles)% hObject    handle to set1_UR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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 set2_LR_Callback(hObject, eventdata, handles)% hObject    handle to set1_LR (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 set1_LR as text%        str2double(get(hObject,'String')) returns contents of set1_LR as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set2_LR_CreateFcn(hObject, eventdata, handles)% hObject    handle to set1_LR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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 set2_UR_Callback(hObject, eventdata, handles)% hObject    handle to set2_UR (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 set2_UR as text%        str2double(get(hObject,'String')) returns contents of set2_UR as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set2_UR_CreateFcn(hObject, eventdata, handles)% hObject    handle to set2_UR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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 set3_LR_Callback(hObject, eventdata, handles)% hObject    handle to set3_LR (see GCBO)% --- Executes during object creation, after setting all properties.% 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 set3_LR as text%        str2double(get(hObject,'String')) returns contents of set3_LR as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set3_LR_CreateFcn(hObject, eventdata, handles)% hObject    handle to set3_LR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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 set3_UR_Callback(hObject, eventdata, handles)% hObject    handle to set3_UR (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 set3_UR as text%        str2double(get(hObject,'String')) returns contents of set3_UR as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set3_UR_CreateFcn(hObject, eventdata, handles)% hObject    handle to set3_UR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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');end%%function set1_LR_td_Callback(hObject, eventdata, handles)% hObject    handle to set1_LR_td (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 set1_LR_td as text%        str2double(get(hObject,'String')) returns contents of set1_LR_td as a double%store the contents of input1_editText as a string. if the string %is not a number then input will be emptyinput = str2num(get(hObject,'String')); %checks to see if input is empty. if so, default input1_editText to zeroif (isempty(input))     set(hObject,'String','0')endguidata(hObject, handles);% --- Executes during object creation, after setting all properties.function set1_LR_td_CreateFcn(hObject, eventdata, handles)% hObject    handle to set1_LR_td (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after 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 set1_UR_td_Callback(hObject, eventdata, handles)% hObject    handle to set1_UR_td (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 set1_UR_td as text

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -