5 %>@image html Screenshot-uip_pre_sigwindow.png
14 function varargout = uip_pre_sigwindow(varargin)
15 % Begin initialization code - DO NOT EDIT
17 gui_State =
struct(
'gui_Name', mfilename, ...
18 'gui_Singleton', gui_Singleton, ...
19 'gui_OpeningFcn', @uip_pre_sigwindow_OpeningFcn, ...
20 'gui_OutputFcn', @uip_pre_sigwindow_OutputFcn, ...
21 'gui_LayoutFcn', [] , ...
23 if nargin && ischar(varargin{1})
24 gui_State.gui_Callback = str2func(varargin{1});
28 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
30 gui_mainfcn(gui_State, varargin{:});
32 % End initialization code - DO NOT EDIT
35 % --- Executes just before uip_pre_sigwindow is made visible.
36 function uip_pre_sigwindow_OpeningFcn(hObject, eventdata, handles, varargin)
37 handles.output.flag_ok = 0;
38 guidata(hObject, handles);
42 % --- Outputs from this function are returned to the command clae.
43 function varargout = uip_pre_sigwindow_OutputFcn(hObject, eventdata, handles)
45 uiwait(handles.figure1);
46 handles = guidata(hObject);
47 varargout{1} = handles.output;
51 varargout{1} = output;
54 % --- Executes during
object creation, after setting all properties.
55 function editReg_CreateFcn(hObject, eventdata, handles)
56 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
57 set(hObject,'BackgroundColor','white');
62 % --- Executes on button press in pushbuttonOk.
63 function pushbuttonOk_Callback(hObject, eventdata, handles)
64 handles.output.params = {...
65 'range', mat2str(eval(
get(handles.edit_range,
'String'))), ...
66 'width', num2str(eval(
get(handles.edit_width,
'String'))) ...
68 handles.output.flag_ok = 1;
69 guidata(hObject, handles);
72 function edit_range_Callback(hObject, eventdata, handles)
74 % --- Executes during
object creation, after setting all properties.
75 function edit_range_CreateFcn(hObject, eventdata, handles)
76 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
77 set(hObject,'BackgroundColor','white');
80 function edit_width_Callback(hObject, eventdata, handles)
82 % --- Executes during
object creation, after setting all properties.
83 function edit_width_CreateFcn(hObject, eventdata, handles)
84 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
85 set(hObject,'BackgroundColor','white');
Property range
beginning and terminus of window, given in data.fea_x units
function gui_set_position(in hObject)
Applies sigmoid window to curves.
Property width
length for sigmoid to go from 0.5 to .995 or .005 given in data.fea_x units