annotate toolboxes/MIRtoolbox1.3.2/somtoolbox/sompak_gui.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 function sompak_gui()
Daniel@0 2
Daniel@0 3 %SOMPAK_GUI A GUI for using SOM_PAK functions from Matlab.
Daniel@0 4 %
Daniel@0 5 % sompak_gui
Daniel@0 6 %
Daniel@0 7 % Launches a GUI which allows the use of SOM_PAK functions from
Daniel@0 8 % Matlab. Notice that to use this function, the SOM_PAK programs must
Daniel@0 9 % be in your search path, or the variable 'SOM_PAKDIR' which is a
Daniel@0 10 % string containing the program path, must be defined in the
Daniel@0 11 % workspace. SOM_PAK programs can be found from:
Daniel@0 12 % http://www.cis.hut.fi/research/som_lvq_pak.shtml
Daniel@0 13 %
Daniel@0 14 % See also SOM_GUI, SOMPAK_INIT_GUI, SOMPAK_SAMMON_GUI, SOMPAK_TRAIN_GUI.
Daniel@0 15
Daniel@0 16 % Contributed to SOM Toolbox 2.0, February 2nd, 2000 by Juha Parhankangas
Daniel@0 17 % Copyright (c) by Juha Parhankangas
Daniel@0 18 % http://www.cis.hut.fi/projects/somtoolbox/
Daniel@0 19
Daniel@0 20 % Juha Parhankangas 050100
Daniel@0 21
Daniel@0 22 h=findobj(get(0,'Children'),'Tag','sompak_gui');
Daniel@0 23 if ~isempty(h)
Daniel@0 24 figure(h);
Daniel@0 25 return;
Daniel@0 26 end
Daniel@0 27
Daniel@0 28 a = figure('Color',[0.8 0.8 0.8], ...
Daniel@0 29 'PaperType','a4letter', ...
Daniel@0 30 'Position',[689 536 210 70], ...
Daniel@0 31 'Tag','sompak_gui');
Daniel@0 32 b = uicontrol('Parent',a, ...
Daniel@0 33 'Units','points', ...
Daniel@0 34 'BackgroundColor',[0.701961 0.701961 0.701961], ...
Daniel@0 35 'Callback','sompak_init_gui',...
Daniel@0 36 'FontWeight','demi', ...
Daniel@0 37 'Position',[8 30 50 20], ...
Daniel@0 38 'String','INIT', ...
Daniel@0 39 'Tag','Pushbutton1');
Daniel@0 40 b = uicontrol('Parent',a, ...
Daniel@0 41 'Units','points', ...
Daniel@0 42 'BackgroundColor',[0.701961 0.701961 0.701961], ...
Daniel@0 43 'Callback','sompak_train_gui',...
Daniel@0 44 'FontWeight','demi', ...
Daniel@0 45 'Position',[63 30 50 20], ...
Daniel@0 46 'String','TRAIN', ...
Daniel@0 47 'Tag','Pushbutton2');
Daniel@0 48 b = uicontrol('Parent',a, ...
Daniel@0 49 'Units','points', ...
Daniel@0 50 'BackgroundColor',[0.701961 0.701961 0.701961], ...
Daniel@0 51 'Callback','sompak_sammon_gui',...
Daniel@0 52 'FontWeight','demi', ...
Daniel@0 53 'Position',[118 30 50 20], ...
Daniel@0 54 'String','SAMMON', ...
Daniel@0 55 'Tag','Pushbutton3');
Daniel@0 56 b = uicontrol('Parent',a, ...
Daniel@0 57 'Units','points', ...
Daniel@0 58 'BackgroundColor',[0.701961 0.701961 0.701961], ...
Daniel@0 59 'Callback','close gcf', ...
Daniel@0 60 'FontSize',9, ...
Daniel@0 61 'FontWeight','demi', ...
Daniel@0 62 'Position',[128 5 40 15], ...
Daniel@0 63 'String','Close', ...
Daniel@0 64 'Tag','Pushbutton4');
Daniel@0 65
Daniel@0 66
Daniel@0 67
Daniel@0 68
Daniel@0 69