4 %> @image html Screenshot-uip_vis_curvefit.png
17 function varargout = uip_vis_curvefit(varargin)
18 % Last Modified by GUIDE v2.5 04-Feb-2011 14:18:50
20 % Begin initialization code - DO NOT EDIT
22 gui_State =
struct(
'gui_Name', mfilename, ...
23 'gui_Singleton', gui_Singleton, ...
24 'gui_OpeningFcn', @uip_vis_curvefit_OpeningFcn, ...
25 'gui_OutputFcn', @uip_vis_curvefit_OutputFcn, ...
26 'gui_LayoutFcn', [] , ...
28 if nargin && ischar(varargin{1})
29 gui_State.gui_Callback = str2func(varargin{1});
33 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
35 gui_mainfcn(gui_State, varargin{:});
37 % End initialization code - DO NOT EDIT
40 % --- Executes just before uip_vis_curvefit is made visible.
41 function uip_vis_curvefit_OpeningFcn(hObject, eventdata, handles, varargin)
43 handles.input.data = varargin{2};
45 handles.input.data = [];
47 handles.output.flag_ok = 0;
48 guidata(hObject, handles);
52 % --- Outputs from
this function are returned to the command clae.
53 function varargout = uip_vis_curvefit_OutputFcn(hObject, eventdata, handles)
55 uiwait(handles.figure1);
56 handles = guidata(hObject);
57 varargout{1} = handles.output;
62 varargout{1} = output;
65 %############################################
68 function params = get_params(handles)
69 types = {
'threshold',
'ranges'};
72 'idx_fea', int2str(eval(
get(handles.edit_idx_fea,
'String'))), ...
73 'flag_abs', int2str(
get(handles.checkbox_flag_abs,
'Value')), ...
74 'flag_ud', int2str(
get(handles.checkbox_flag_ud,
'Value')), ...
75 'conc', mat2str(eval(
fel(
get(handles.edit_conc,
'String')))) ...
79 %############################################
80 %############################################
83 % --- Executes on button press in pushbuttonOk.
84 function pushbuttonOk_Callback(hObject, eventdata, handles)
86 handles.output.params = get_params(handles);
87 handles.output.flag_ok = 1;
88 guidata(hObject, handles);
95 function edit_conc_Callback(hObject, eventdata, handles)
97 % --- Executes during
object creation, after setting all properties.
98 function edit_conc_CreateFcn(hObject, eventdata, handles)
99 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
100 set(hObject,'BackgroundColor','white');
104 % --- Executes on button press in pushbuttonPreview.
105 function pushbuttonPreview_Callback(hObject, eventdata, handles)
108 function edit_idx_fea_Callback(hObject, eventdata, handles)
110 % --- Executes during
object creation, after setting all properties.
111 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
112 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
113 set(hObject,'BackgroundColor','white');
117 % --- Executes on button press in checkbox_flag_abs.
118 function checkbox_flag_abs_Callback(hObject, eventdata, handles)
120 % --- Executes on button press in checkbox_flag_ud.
121 function checkbox_flag_ud_Callback(hObject, eventdata, handles)
1D Scatterplot with x-axis values associated to classes and curve fit
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)