www.gusucode.com > classification_matlab_toolbox分类方法工具箱源码程序 > code/Classification_toolbox/enter_distributions.m
function fig = enter_distributions() % 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 enter_distributions h0 = figure('Units','characters', ... 'Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'FileName','E:\Work\hw\enter_distributions.m', ... 'MenuBar','none', ... 'PaperPosition',[52 11 57 35], ... 'PaperUnits','points', ... 'Position',[52 11 57 35], ... 'Tag','Enter Distributions', ... 'ToolBar','none'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'ListboxTop',0, ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'Position',[7 9 45 13], ... 'Style','frame', ... 'Tag','frmParams'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[7 23 45 3], ... 'Style','frame', ... 'Tag','frmHowMany'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[7 27 45 4], ... 'Style','frame', ... 'Tag','frmClass'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'FontSize',12, ... 'FontWeight','bold', ... 'ListboxTop',0, ... 'Position',[4 31 50 3], ... 'String','Manually Enter Distributions', ... 'Style','text', ... 'Tag','txtTitle'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'Callback','enter_distributions_commands(''change_class'',0)', ... 'ListboxTop',0, ... 'Position',[8.5 27.5 20 1], ... 'String','Class 0', ... 'Style','radiobutton', ... 'Tag','rbtClass0', ... 'Value',1); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[8.5 28.5 20 2], ... 'String','Choose class:', ... 'Style','text', ... 'Tag','txtClass'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'Callback','enter_distributions_commands(''change_class'',1)', ... 'ListboxTop',0, ... 'Position',[30 27.5 20 1], ... 'String','Class 1', ... 'Style','radiobutton', ... 'Tag','rbtClass1'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'Callback','close', ... 'ListboxTop',0, ... 'Position',[42 5 10 3], ... 'String','OK', ... 'Tag','pshOK'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[9 20 20 1], ... 'String','Gaussian number:', ... 'Style','text', ... 'Tag','txtParameters'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[8 24 40 1], ... 'String','There are 1 Gaussians in this class', ... 'Style','text', ... 'Tag','txtCount'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'Callback','enter_distributions_commands(''change_gaussian'')', ... 'ListboxTop',0, ... 'Position',[35 19.75 15.5 1.5], ... 'String',mat2, ... 'Style','popupmenu', ... 'Tag','popNumber', ... 'Value',1); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[9 18 30 1], ... 'HorizontalAlignment','left', ... 'String','Weight of the Gaussian:', ... 'Style','text', ... 'Tag','txt1'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[40 17.75 10.5 1.5], ... 'String','1', ... 'Style','edit', ... 'Tag','txtWeight'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'HorizontalAlignment','left', ... 'Position',[9 16 30 1], ... 'String','Means of the Gaussian:', ... 'Style','text', ... 'Tag','txt2'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[35 15.75 7 1.5], ... 'String','0', ... 'Style','edit', ... 'Tag','txtMeanX'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[43.5 15.75 7 1.5], ... 'String','0', ... 'Style','edit', ... 'Tag','txtMeanY'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[9 14 29 1], ... 'HorizontalAlignment','left', ... 'String','Covariance of the Gaussian:', ... 'Style','text', ... 'Tag','txt3'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[33 12 10 1.5], ... 'String','0', ... 'Style','edit', ... 'Tag','txtCov12'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[20 12 10 1.5], ... 'String','0', ... 'Style','edit', ... 'Tag','txtCov11'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[20 10 10 1.5], ... 'String','0', ... 'Style','edit', ... 'Tag','txtCov21'); h1 = uicontrol('Parent',h0, ... 'Units','characters', ... 'BackgroundColor',[1 1 1], ... 'Callback','enter_distributions_commands(''change_parameter'',gcbo)', ... 'ListboxTop',0, ... 'Position',[33 10 10 1.5], ... 'String','0', ... 'Style','edit', ... 'Tag','txtCov22'); if nargout > 0, fig = h0; end enter_distributions_commands('change_class',0);