5 %>@image html Screenshot-uip_fcon_resample.png
12 function varargout = uip_fcon_resample(varargin)
13 % Begin initialization code - DO NOT EDIT
15 gui_State =
struct(
'gui_Name', mfilename, ...
16 'gui_Singleton', gui_Singleton, ...
17 'gui_OpeningFcn', @uip_fcon_resample_OpeningFcn, ...
18 'gui_OutputFcn', @uip_fcon_resample_OutputFcn, ...
19 'gui_LayoutFcn', [] , ...
21 if nargin && ischar(varargin{1})
22 gui_State.gui_Callback = str2func(varargin{1});
26 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
28 gui_mainfcn(gui_State, varargin{:});
30 % End initialization code - DO NOT EDIT
33 % --- Executes just before uip_fcon_resample is made visible.
34 function uip_fcon_resample_OpeningFcn(hObject, eventdata, handles, varargin)
35 handles.output.flag_ok = 0;
36 guidata(hObject, handles);
40 % --- Outputs from this function are returned to the command clae.
41 function varargout = uip_fcon_resample_OutputFcn(hObject, eventdata, handles)
43 uiwait(handles.figure1);
44 handles = guidata(hObject);
45 varargout{1} = handles.output;
49 varargout{1} = output;
53 % --- Executes on button press in pushbuttonOk.
54 function pushbuttonOk_Callback(hObject, eventdata, handles)
55 % hObject handle to pushbuttonOk (see GCBO)
56 % eventdata reserved - to be defined in a future version of MATLAB
57 % handles structure with handles and user data (see GUIDATA)
59 handles.output.params = {...
60 'no_fea', mat2str(eval(
get(handles.edit_no_fea,
'String'))) ...
62 handles.output.flag_ok = 1;
63 guidata(hObject, handles);
67 function edit_no_fea_Callback(hObject, eventdata, handles)
69 % --- Executes during
object creation, after setting all properties.
70 function edit_no_fea_CreateFcn(hObject, eventdata, handles)
71 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
72 set(hObject,'BackgroundColor','white');
function gui_set_position(in hObject)
Resampling - uses MATLAB's DSP Toolbox resample() function.