IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_fcon_maxminpos.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref fcon_maxminpos
4 %>
5 %> <b>Map</b> - see fcon_maxminpos::map
6 %>
8 
9 %>@cond
10 function varargout = uip_fcon_maxminpos(varargin)
11 % Begin initialization code - DO NOT EDIT
12 gui_Singleton = 1;
13 gui_State = struct('gui_Name', mfilename, ...
14  'gui_Singleton', gui_Singleton, ...
15  'gui_OpeningFcn', @blockuip_fsel_rmiesc_OpeningFcn, ...
16  'gui_OutputFcn', @blockuip_fsel_rmiesc_OutputFcn, ...
17  'gui_LayoutFcn', [] , ...
18  'gui_Callback', []);
19 if nargin && ischar(varargin{1})
20  gui_State.gui_Callback = str2func(varargin{1});
21 end
22 
23 if nargout
24  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
25 else
26  gui_mainfcn(gui_State, varargin{:});
27 end
28 % End initialization code - DO NOT EDIT
29 
30 
31 % --- Executes just before blockuip_fsel_rmiesc is made visible.
32 function blockuip_fsel_rmiesc_OpeningFcn(hObject, eventdata, handles, varargin) %#ok<*INUSL>
33 handles.output.flag_ok = 0;
34 guidata(hObject, handles);
35 gui_set_position(hObject);
36 
37 
38 % --- Outputs from this function are returned to the command clae.
39 function varargout = blockuip_fsel_rmiesc_OutputFcn(hObject, eventdata, handles)
40 try
41  uiwait(handles.figure1);
42  handles = guidata(hObject);
43  varargout{1} = handles.output;
44  delete(gcf);
45 catch %#ok<*CTCH>
46  output.flag_ok = 0;
47  varargout{1} = output;
48 end;
49 
50 function pushbuttonOk_Callback(hObject, eventdata, handles) %#ok<*DEFNU>
51 
52 temp = get(handles.edit_options, 'String');
53 s = sprintf('%s\n', temp{:});
54 
55 handles.output.params = {...
56 'map', mat2str(eval(s)) ...
57 };
58 handles.output.flag_ok = 1;
59 guidata(hObject, handles);
60 uiresume();
61 
62 
63 function edit_options_Callback(hObject, eventdata, handles) %#ok<*INUSD>
64 
65 function edit_options_CreateFcn(hObject, eventdata, handles)
66 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
67  set(hObject,'BackgroundColor','white');
68 end
69 %>@endcond
Maxima/minima detection.
function gui_set_position(in hObject)
function peak_landmarks(in X, in map, in t_range)
Property map
[wn11, wn12, flag_min1; wn21, wn22, flag_min2; ...]