clssification-methods.rar

  • sadapappu
    了解作者
  • matlab
    开发工具
  • 32KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 3
    下载次数
  • 2016-09-02 22:05
    上传日期
classification methods in matlab
clssification-methods.rar
  • clssification methods
  • Classification.fig
    20.8KB
  • Classification.m
    253.9KB
内容介绍
function varargout = Classification(varargin) % CLASSIFICATION MATLAB code for Classification.fig % CLASSIFICATION, by itself, creates a new CLASSIFICATION or raises the existing % singleton*. % % H = CLASSIFICATION returns the handle to a new CLASSIFICATION or the handle to % the existing singleton*. % % CLASSIFICATION('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in CLASSIFICATION.M with the given input arguments. % % CLASSIFICATION('Property','Value',...) creates a new CLASSIFICATION or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before Classification_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to Classification_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 Classification % Last Modified by GUIDE v2.5 07-Nov-2015 23:26:21 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Classification_OpeningFcn, ... 'gui_OutputFcn', @Classification_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if 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 Classification is made visible. function Classification_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 Classification (see VARARGIN) % Choose default command line output for Classification handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes Classification wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = Classification_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 structure varargout{1} = handles.output; % --- Executes on selection change in popupmenu1. function popupmenu1_Callback(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global Rd1 Rd2 Rd3 Rd4 Rd5 Rd6 Rd7 Rd8 Rd9 Rd10 global Rd11 Rd12 Rd13 Rd14 Rd15 Rd16 Rd17 Rd18 Rd19 Rd20 global Rd21 Rd22 Rd23 Rd24 Rd25 Rd26 Rd27 Rd28 Rd29 Rd30 global Rd31 Rd32 Rd33 Rd34 Rd35 Rd36 Rd37 global contentsOfHomogenious contentsOfHomogenious=get(hObject,'Value'); if contentsOfHomogenious == 1; set(handles.checkbox1,'Value',1); set(handles.checkbox2,'Value',1); set(handles.checkbox3,'Value',1); set(handles.checkbox4,'Value',1); set(handles.checkbox5,'Value',1); set(handles.checkbox6,'Value',1); set(handles.checkbox7,'Value',1); set(handles.checkbox8,'Value',1); set(handles.checkbox9,'Value',1); set(handles.checkbox10,'Value',1); set(handles.checkbox11,'Value',1); set(handles.checkbox12,'Value',1); set(handles.checkbox13,'Value',1); set(handles.checkbox14,'Value',1); set(handles.checkbox15,'Value',1); set(handles.checkbox16,'Value',1); set(handles.checkbox17,'Value',1); set(handles.checkbox18,'Value',1); set(handles.checkbox19,'Value',1); set(handles.checkbox20,'Value',1); set(handles.checkbox21,'Value',1); set(handles.checkbox22,'Value',1); set(handles.checkbox23,'Value',1); set(handles.checkbox24,'Value',1); set(handles.checkbox25,'Value',1); set(handles.checkbox26,'Value',1); set(handles.checkbox27,'Value',1); set(handles.checkbox28,'Value',1); set(handles.checkbox29,'Value',1); set(handles.checkbox30,'Value',1); set(handles.checkbox31,'Value',1); set(handles.checkbox32,'Value',1); set(handles.checkbox33,'Value',1); set(handles.checkbox34,'Value',1); set(handles.checkbox35,'Value',1); set(handles.checkbox36,'Value',1); set(handles.checkbox37,'Value',1); % set(handles.checkbox37,'ForegroundColor','red'); % set(handles.checkbox37,'BackgroundColor','white'); Rd1=1; Rd2=1; Rd3=1; Rd4=1; Rd5=1; Rd6=1; Rd7=1; Rd8=1; Rd9=1; Rd10=1; Rd11=1; Rd12=1; Rd13=1; Rd14=1; Rd15=1; Rd16=1; Rd17=1; Rd18=1; Rd19=1; Rd20=1; Rd21=1; Rd22=1; Rd23=1; Rd24=1; Rd25=1; Rd26=1; Rd27=1; Rd28=1; Rd29=1; Rd30=1; Rd31=1; Rd32=1; Rd33=1; Rd34=1; Rd35=1; Rd36=1; Rd37=1; SelectedZones =vertcat(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37); set(handles.uitable1,'ColumnWidth',{100}) set(handles.uitable1,'Data',SelectedZones ); end if contentsOfHomogenious == 2; set(handles.checkbox1,'Value',1); set(handles.checkbox2,'Value',1); set(handles.checkbox3,'Value',1); set(handles.checkbox4,'Value',1); set(handles.checkbox5,'Value',1); set(handles.checkbox6,'Value',1); set(handles.checkbox7,'Value',0); set(handles.checkbox8,'Value',0); set(handles.checkbox9,'Value',0); set(handles.checkbox10,'Value',0); set(handles.checkbox11,'Value',0); set(handles.checkbox12,'Value',0); set(handles.checkbox13,'Value',0); set(handles.checkbox14,'Value',0); set(handles.checkbox15,'Value',0); set(handles.checkbox16,'Value',0); set(handles.checkbox17,'Value',0); set(handles.checkbox18,'Value',0); set(handles.checkbox19,'Value',0); set(handles.checkbox20,'Value',0); set(handles.checkbox21,'Value',0); set(handles.checkbox22,'Value',0); set(handles.checkbox23,'Value',0); set(handles.checkbox24,'Value',0); set(handles.checkbox25,'Value',0); set(handles.checkbox26,'Value',0); set(handles.checkbox27,'Value',0); set(handles.checkbox28,'Value',0); set(handles.checkbox29,'Value',0); set(handles.checkbox30,'Value',0); set(handles.checkbox31,'Value',0); set(handles.checkbox32,'Value',0); set(handles.checkbox33,'Value',0); set(handles.checkbox34,'Value',0); set(handles.checkbox35,'Value',0); set(handles.checkbox36,'Value',0); set(handles.checkbox37,'Value',0); Rd1=1; Rd2=1; Rd3=1; Rd4=1; Rd5=1; Rd6=1; Rd7=0; Rd8=0; Rd9=0; Rd10=0; Rd11=0; Rd12=0; Rd13=0; Rd14=0; Rd15=0; Rd16=0; Rd17=0; Rd18=0; Rd19=0; Rd20=0; Rd21=0; Rd22=0; Rd23=0; Rd24=0; Rd25=0; Rd26=0; Rd27=0; Rd28=0; Rd29=0; Rd30=0; Rd31=0; Rd32=0; Rd33=0; Rd34=0; Rd35=0; Rd36=0; Rd37=0; SelectedZones =vertcat(1,2,3,4,5,6); set(handles.uitable1,'ColumnWidth',{100}) set(handles.uitable1,'Data',SelectedZones ); end if contentsOfHomogenious == 3; set(handles.checkbox1,'Value',0); set(handles.checkbox2,'Value',0); set(handles.checkbox3,'Value',0); set(handles.checkbox4,'Value',0); set(handles.checkbox5,'Value',0); set(handles.checkbox6,'Value',0); set(handles.checkbox7,'Value',1); set(handles.checkbox8,'Value',0); set(handles.checkbox9,'Value',0); set(handles.chec
评论
    相关推荐