3 %> @brief Asks
for a peak detector
object. Specifying one or not will be optional to the user.
6 function varargout = ask_peakdetector(varargin)
7 % Last Modified by GUIDE v2.5 14-Jan-2014 08:00:03
9 % Begin initialization code - DO NOT EDIT
11 gui_State =
struct(
'gui_Name', mfilename, ...
12 'gui_Singleton', gui_Singleton, ...
13 'gui_OpeningFcn', @ask_peakdetector_OpeningFcn, ...
14 'gui_OutputFcn', @ask_peakdetector_OutputFcn, ...
15 'gui_LayoutFcn', [] , ...
17 if nargin && ischar(varargin{1})
18 gui_State.gui_Callback = str2func(varargin{1});
22 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
24 gui_mainfcn(gui_State, varargin{:});
26 % End initialization code - DO NOT EDIT
29 % --- Executes just before ask_peakdetector is made visible.
30 function ask_peakdetector_OpeningFcn(hObject, eventdata, handles, varargin)
31 handles.output.flag_ok = 0;
32 guidata(hObject, handles);
36 % --- Outputs from this function are returned to the command clae.
37 function varargout = ask_peakdetector_OutputFcn(hObject, eventdata, handles)
39 uiwait(handles.figure1);
40 handles = guidata(hObject);
41 varargout{1} = handles.output;
46 varargout{1} = output;
50 %############################################
53 function refresh(handles)
57 %
############################################
58 %############################################
60 % --- Executes on button press in pushbuttonOK.
61 function pushbuttonOK_Callback(hObject, eventdata, handles)
67 handles.output.params = {...
68 'peakdetector', spd, ...
70 handles.output.flag_ok = 1;
71 guidata(hObject, handles);
78 function popupmenuPeakdetector_Callback(hObject, eventdata, handles)
79 function popupmenuPeakdetector_CreateFcn(hObject, eventdata, handles)
80 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
81 set(hObject,'BackgroundColor','white');
function listbox_get_selected_1stname(in h_listbox)
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)