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

📄 classifier.m

📁 最新的模式识别分类工具箱,希望对朋友们有用!
💻 M
📖 第 1 页 / 共 2 页
字号:
function fig = classifier()% 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 classifierh0 = figure('Units','characters', ...            'Color',[0.8 0.8 0.8], ...	    'Colormap',mat0, ...	    'CreateFcn','                                                                        ', ...	    'FileName','D:\Users\elad\HW\Classification_toolbox\classifier.m', ...	    'MenuBar','none', ...	    'PaperPosition',[18 180 576 432], ...	    'PaperType','A4', ...	    'PaperUnits','points', ...	    'Position',[44 11.46153846153846 129 45.38461538461539], ...	    'Renderer','zbuffer', ...	    'RendererMode','manual', ...	    'Tag','Main', ...	    'ToolBar','none');% file menuh1 = uimenu('Parent',h0, ...	'Callback','                                    ', ...	'Label','&File', ...	'Tag','&File1');%submenu loadh2 = uimenu('Parent',h1, ...	'Label','&Load', ...	'Tag','&FileLoad');h3 = uimenu('Parent',h2, ...	'Callback','classifier_commands(''SearchForFile'')', ...	'Label','&Load distribution', ...	'Tag','&FileLoadDistribution');h3 = uimenu('Parent',h2, ...	'Callback','classifier_commands(''LoadDistFile'')', ...	'Label','&Load distribution parameters', ...	'Tag','&FileOpenParameters');% submenu saveh2 = uimenu('Parent',h1, ...	'Label','Save', ...	'Tag','&FileSave1');h3 = uimenu('Parent',h2, ...	'Callback','classifier_commands(''SaveFeatures'')', ...	'Label','&Save distribution', ...	'Tag','&FileSaveDistribution');h3 = uimenu('Parent',h2, ...	'Callback','classifier_commands(''SaveParameters'')', ...	'Label','&Save distribution parameters', ...	'Tag','&FileSaveParameters');% submenu clearh2 = uimenu('Parent',h1, ...	'Label','Clear', ...	'Tag','&FileClear1');h3 = uimenu('Parent',h2, ...	'Callback','classifier_commands(''ClearBounds'')', ...	'Label','Clear &bounds', ...	'Tag','&File&ClearBounds');h3 = uimenu('Parent',h2, ...	'Callback','classifier_commands(''ClearWorkspace'')', ...	'Label','Clear &workspace', ...	'Tag','&File&ClearWorkspace');% blank Entryh2 = uimenu('Parent',h1, ...	'Tag','&FileMenu1');% entry: Permute Features    h2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''MixFeatures'')', ...	'Label','&Permute features', ...	'Tag','&MixFeatures');% blank Entryh2 = uimenu('Parent',h1, ...	'Tag','&FileMenu1');% entry: Exith2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''Exit'')', ...	'Label','&Exit', ...	'Tag','&File&Exit');% Edit Menuh1 = uimenu('Parent',h0, ...	'Callback','                                    ', ...	'Label','&Edit', ...	'Tag','&Edit1');% Print entryh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''Print'')        ', ...	'Label','&Print', ...	'Tag','&Edit&Print1');% Copy Entryh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''Copy'')         ', ...	'Label','&Copy', ...	'Tag','&Edit&Copy1');% --------------------------------% view menuh1 = uimenu('Parent',h0, ...	'Callback','                                    ', ...	'Label','&View', ...	'Tag','&View1');%  grid entryh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''MenuGrid'')     ', ...	'Checked','on', ...	'Label','&Grid', ...	'Tag','&View&Grid1');%  zoom entryh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''MenuZoom'')     ', ...	'Label','&Zoom', ...	'Tag','&View&Zoom1');% Option menu h1 = uimenu('Parent',h0, ...	'Label','&Options', ...	'Tag',	'&Options');% Perform preprocessing separately for each class entryh2 = uimenu('Parent',h1, ...	'Callback',...	'classifier_commands(''SeparatePreprocessing'') ', ...	'Label',...	'&Perform preprocessing separately for each class', ...	'Tag','&Options&SeparatePreprocessing');    % Show center of partitions during training optionh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''ShowPartitions'') ', ...	'Label','&Show center of partitions during training', ...	'Tag','&Options&ShowPartitions');% Show Training points optionh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''ShowTrainingPoints'') ', ...	'Label','Show &Training points', ...	'Tag','&Options&ShowTraining');% Shade Decision Regions optionsh2 = uimenu('Parent',h1, ...	'Callback','classifier_commands(''ShadeDecisionRegion'') ', ...	'Label','Shade &Decision Regions', ...	'Checked','on', ...	'Tag','&Options&ShadeDecision');h1 = uimenu('Parent',h0, ...	'Callback','classifier_commands(''About'') ', ...	'Label','&About', ...	'Tag','&About');% message frame at the bottom of the main frameh1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'ListboxTop',0, ...	'Position',[16 10 590 42], ...	'Style','frame', ...	'Tag','frmMessages');% The title within the frameh1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'FontSize',10, ...	'FontWeight','bold', ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[19.5 31.5 62.25 14.25], ...	'String','Messages:', ...	'Style','text', ...	'Tag','txtMessages');% This is a text object that will contain the message texth1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'FontSize',10, ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[21.75 12 427.5 18.75], ...	'Style','text', ...	'Tag','Messages');% ------------------------------------------------% ------------------------------------------------% other message box, above the previous one and to the righth1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'ListboxTop',0, ...	'Position',[210  56 396 72], ...	'Style','frame', ...	'Tag','frmErrors');% The title within the frameh1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'FontSize',10, ...	'FontWeight','bold', ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[217.5 105 150 18.75], ...	'String','Classification Errors:', ...	'Style','text', ...	'Tag','txtErrors');% Test Set Error text tag, will appear somewhere h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[220 87 290 15], ...	'Style','text', ...	'Tag','TestSetError');% Test Set Error text tag, will appear somewhere h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[220 70 290 15], ...	'Style','text', ...	'Tag','TrainSetError');%h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[228 57 240.75 15], ...	'Style','text', ...	'Tag','BayesError');% ------------------------------------------------% the plotting area where the data will be plottedh1 = axes('Parent',h0, ...	'Box','on', ...	'CameraUpVector',[0 1 0], ...	'CameraUpVectorMode','manual', ...	'Color',[1 1 1], ...	'Position',[0.4353846153846154 0.366852886405959 0.5353846153846154 0.5884543761638734], ...	'Tag','axsPlotArea', ...	'XColor',[0 0 0], ...	'XGrid','on', ...	'YColor',[0 0 0], ...	'YGrid','on', ...	'ZColor',[0 0 0], ...	'ZGrid','on');% more settings for the aboveh2 = line('Parent',h1, ...	'Color',[0 0 1], ...	'Tag','Line1', ...	'XData',0, ...	'YData',0);h2 = text('Parent',h1, ...	'Color',[0 0 0], ...	'HandleVisibility','off', ...	'HorizontalAlignment','center', ...	'Position',[-0.005813953488372103 -1.151898734177215 17.32050807568877], ...	'Tag','Text4', ...	'VerticalAlignment','cap');set(get(h2,'Parent'),'XLabel',h2);h2 = text('Parent',h1, ...	'Color',[0 0 0], ...	'HandleVisibility','off', ...	'HorizontalAlignment','center', ...	'Position',[-1.191860465116279 -0.006329113924050667 17.32050807568877], ...	'Rotation',90, ...	'Tag','Text3', ...	'VerticalAlignment','baseline');set(get(h2,'Parent'),'YLabel',h2);% more settings for the above, text stuffh2 = text('Parent',h1, ...	'Color',[0 0 0], ...	'HandleVisibility','off', ...	'HorizontalAlignment','right', ...	'Position',mat2, ...	'Tag','Text2', ...	'Visible','off');set(get(h2,'Parent'),'ZLabel',h2);h2 = text('Parent',h1, ...	'Color',[0 0 0], ...	'HandleVisibility','off', ...	'HorizontalAlignment','center', ...	'Position',[-0.005813953488372103 1.044303797468354 17.32050807568877], ...	'Tag','Text1', ...	'VerticalAlignment','bottom');set(get(h2,'Parent'),'Title',h2);% ================================================================% Box 2h1 = uicontrol('Parent',h0, ...    'Units','points', ...    'BackgroundColor',[0.8 0.8 0.8], ...    'ListboxTop',0, ...    'Position',[16  450 180 36], ...    'Style','frame', ...    'Tag','frmFilename');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'HorizontalAlignment','center', ...	'ListboxTop',0, ...	'Position',[18 468 176 15], ...	'String','Framework', ...	'Style','text', ...	'Tag','frameworkToBeUsedTxt');% and this is the pop up menuh1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...	'ListboxTop',0, ...	'Position',[20 455 172 18], ...	'String',mat11, ...	'Style','popupmenu', ...	'Tag','frameworkToBeUsed', ...	'Value',1);% ================================================%  Box 3 on the upper left portion of the UI%   Used to read the data fileh1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.8 0.8 0.8], ...	'ListboxTop',0, ...	'Position',[16 420 180 32], ...	'Style','frame', ...	'Tag','frmFilename');% Writes the text "File" in Box 3h1 = uicontrol('Parent',h0, ...	'Units','points', ...

⌨️ 快捷键说明

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