www.gusucode.com > classification_matlab_toolbox分类方法工具箱源码程序 > code/Classification_toolbox/FindParameters.m

    function fig = FindParamters2()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% 
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files.  Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.

load FindParameters

h0 = figure('Units','characters', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'FileName','D:\Users\elad\HW\FindParamters2.m', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
    'Position',[19.6 15 124 26], ...
   'MenuBar','none', ...   
	'Tag','Fig1', ...
	'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'FontSize',14, ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[12 22 100 2], ...
	'String','Find best parameters for a classifier', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''None1'')', ...
	'ListboxTop',0, ...
	'Position',[18 19 10 1], ...
	'String','None', ...
	'Style','radiobutton', ...
	'Tag','btnNone1');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[40.5 18.75 14 1.5], ...
	'Style','edit', ...
	'Tag','txtString1');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''String1'')', ...
	'ListboxTop',0, ...
	'Position',[30 19 10 1], ...
	'String','String:', ...
	'Style','radiobutton', ...
	'Tag','btnString1');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''Number1'')', ...
	'ListboxTop',0, ...
	'Position',[57 19 3 1], ...
	'Style','radiobutton', ...
	'Tag','btnNumeric1', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[61.5 18.75 18 1.5], ...
	'String',mat1, ...
	'Style','popupmenu', ...
	'Tag','popSpacing1', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[80 19 16 1], ...
	'String','spaced between', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[97 18.75 9 1.5], ...
	'Style','edit', ...
	'Tag','txtLowerLimit1');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[106.5 19 5 1], ...
	'String','and', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[113 18.75 9 1.5], ...
	'Style','edit', ...
	'Tag','txtUpperLimit1');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[4 19 12 1], ...
	'String','Parameter 1', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[4 16.5 12 1], ...
	'String','Parameter 2', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[113 16.25 9 1.5], ...
	'Style','edit', ...
	'Tag','txtUpperLimit2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[106.5 16.5 5 1], ...
	'String','and', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[97 16.25 9 1.5], ...
	'Style','edit', ...
	'Tag','txtLowerLimit2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[80 16.5 16 1], ...
	'String','spaced between', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[61.5 16.25 18 1.5], ...
	'String',mat2, ...
	'Style','popupmenu', ...
	'Tag','popSpacing2', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''Number2'')', ...
	'ListboxTop',0, ...
	'Position',[57 16.5 3 1], ...
	'Style','radiobutton', ...
	'Tag','btnNumeric2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''String2'')', ...
	'ListboxTop',0, ...
	'Position',[30 16.5 10 1], ...
	'String','String:', ...
	'Style','radiobutton', ...
	'Tag','btnString2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[40.5 16.25 14 1.5], ...
	'Style','edit', ...
	'Tag','txtString2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''None2'')', ...
	'ListboxTop',0, ...
	'Position',[18 16.5 10 1], ...
	'String','None', ...
	'Style','radiobutton', ...
	'Tag','btnNone2', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 20.75 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[4 14 12 1], ...
	'String','Parameter 3', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[113 13.75 9 1.5], ...
	'Style','edit', ...
	'Tag','txtUpperLimit3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[106.5 14 5 1], ...
	'String','and', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[97 13.75 9 1.5], ...
	'Style','edit', ...
	'Tag','txtLowerLimit3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[80 14 16 1], ...
	'String','spaced between', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[61.5 13.75 18 1.5], ...
	'String',mat3, ...
	'Style','popupmenu', ...
	'Tag','popSpacing3', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''Number3'')', ...
	'ListboxTop',0, ...
	'Position',[57 14 3 1], ...
	'Style','radiobutton', ...
	'Tag','btnNumeric3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''String3'')', ...
	'ListboxTop',0, ...
	'Position',[30 14 10 1], ...
	'String','String:', ...
	'Style','radiobutton', ...
	'Tag','btnString3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[40.5 13.75 14 1.5], ...
	'Style','edit', ...
	'Tag','txtString3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''None3'')', ...
	'ListboxTop',0, ...
	'Position',[18 14 10 1], ...
	'String','None', ...
	'Style','radiobutton', ...
	'Tag','btnNone3', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 18.25 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[4 11.5 12 1], ...
	'String','Parameter 4', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[113 11.25 9 1.5], ...
	'Style','edit', ...
	'Tag','txtUpperLimit4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[106.5 11.5 5 1], ...
	'String','and', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[97 11.25 9 1.5], ...
	'Style','edit', ...
	'Tag','txtLowerLimit4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[80 11.5 16 1], ...
	'String','spaced between', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[61.5 11.25 18 1.5], ...
	'String',mat4, ...
	'Style','popupmenu', ...
	'Tag','popSpacing4', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''Number4'')', ...
	'ListboxTop',0, ...
	'Position',[57 11.5 3 1], ...
	'Style','radiobutton', ...
	'Tag','btnNumeric4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''String4'')', ...
	'ListboxTop',0, ...
	'Position',[30 11.5 10 1], ...
	'String','String:', ...
	'Style','radiobutton', ...
	'Tag','btnString4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[40.5 11.25 14 1.5], ...
	'Style','edit', ...
	'Tag','txtString4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''None4'')', ...
	'ListboxTop',0, ...
	'Position',[18 11.5 10 1], ...
	'String','None', ...
	'Style','radiobutton', ...
    'Tag','btnNone4',...
    'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 15.75 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 13.25 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 10.75 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 8.25 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''None5'')', ...
	'ListboxTop',0, ...
	'Position',[18 9 10 1], ...
	'String','None', ...
	'Style','radiobutton', ...
	'Tag','btnNone5', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[40.5 8.75 14 1.5], ...
	'Style','edit', ...
	'Tag','txtString5');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''String5'')', ...
	'ListboxTop',0, ...
	'Position',[30 9 10 1], ...
	'String','String:', ...
	'Style','radiobutton', ...
	'Tag','btnString5');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''Number5'')', ...
	'ListboxTop',0, ...
	'Position',[57 9 3 1], ...
	'Style','radiobutton', ...
	'Tag','btnNumeric5');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[61.5 8.75 18 1.5], ...
	'String',mat5, ...
	'Style','popupmenu', ...
	'Tag','popSpacing5', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[80 9 16 1], ...
	'String','spaced between', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[97 8.75 9 1.5], ...
	'Style','edit', ...
	'Tag','txtLowerLimit5');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[106.5 9 5 1], ...
	'String','and', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[113 8.75 9 1.5], ...
	'Style','edit', ...
	'Tag','txtUpperLimit5');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[4 9 12 1], ...
	'String','Parameter 5', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[3 5.75 120 0.15], ...
	'Style','frame', ...
	'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''None6'')', ...
	'ListboxTop',0, ...
	'Position',[18 6.5 10 1], ...
	'String','None', ...
	'Style','radiobutton', ...
	'Tag','btnNone6', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[40.5 6.25 14 1.5], ...
	'Style','edit', ...
	'Tag','txtString6');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''String6'')', ...
	'ListboxTop',0, ...
	'Position',[30 6.5 10 1], ...
	'String','String:', ...
	'Style','radiobutton', ...
	'Tag','btnString6');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','FindParametersFunctions(''Number6'')', ...
	'ListboxTop',0, ...
	'Position',[57 6.5 3 1], ...
	'Style','radiobutton', ...
	'Tag','btnNumeric6');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'ListboxTop',0, ...
	'Position',[61.5 6.25 18 1.5], ...
	'String',mat6, ...
	'Style','popupmenu', ...
	'Tag','popSpacing6', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[80 6.5 16 1], ...
	'String','spaced between', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[97 6.25 9 1.5], ...
	'Style','edit', ...
	'Tag','txtLowerLimit6');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[106.5 6.5 5 1], ...
	'String','and', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[113 6.25 9 1.5], ...
	'Style','edit', ...
	'Tag','txtUpperLimit6');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'ListboxTop',0, ...
	'Position',[4 6.5 12 1], ...
	'String','Parameter 6', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[4 3.75 20 1], ...
	'String','Number of folds:', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[24 3.5 6 1.5], ...
	'HorizontalAlignment','center', ...
	'String','5', ...
	'Style','edit', ...
	'Tag','txtFolds');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[4 1.5 20 1], ...
	'String','Number of divisions:', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[1 1 1], ...
	'HorizontalAlignment','center', ...
	'ListboxTop',0, ...
	'Position',[24 1.25 6 1.5], ...
	'String','10', ...
	'Style','edit', ...
	'Tag','txtDivisions');
h1 = uicontrol('Parent',h0, ...
	'Units','characters', ...
	'BackgroundColor',[0.87843137254902 0.815686274509804 0.596078431372549], ...
	'Callback','FindParametersFunctions(''Start'')', ...
	'ListboxTop',0, ...
	'Position',[110 1.25 10 3], ...
	'String','Start', ...
	'Tag','pshStart');
if nargout > 0, fig = h0; end