You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gui_optionsAreaMeasurement.m
    path of file: ./repos/erplab/GUIs
    
    the code of the file until where you have to start completion: function varargout = gui_optionsAreaMeasurement(varargin)
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @gui_optionsAreaMeasurement_OpeningFcn, ...
                   'gui_OutputFcn',  @gui_optionsAreaMeasurement_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

%-------------------------------------------------------------------------------------------------------
function gui_optionsAreaMeasurement_OpeningFcn(h
    
function popupmenu_neighborhood_Callback(hObject, eventdata, handles)

%-------------------------------------------------------------------------------------------------------
function popupmenu_neighborhood_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

%-------------------------------------------------------------------------------------------------------
function popupmenu_replacelocpeak_Callback(hObject, eventdata, handles)

%-------------------------------------------------------------------------------------------------------
function popupmenu_replacelocpeak_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

%-------------------------------------------------------------------------------------------------------
function popupmenu_fracpeak_Callback(hObject, eventdata, handles)

%-------------------------------------------------------------------------------------------------------
function popupmenu_fracpeak_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

%-------------------------------------------------------------------------------------------------------
function popupmenu_replacefracpeak_Callback(hObject, eventdata, handles)

%-------------------------------------------------------------------------------------------------------
function popupmenu_replacefracpeak_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

%-------------------------------------------------------------------------------------------------------
function pushbutton_cancel_Callback(hObject, eventdata, handles)
handles.output = [];
% Update handles structure
guidata(hObject, handles);
uiresume(handles.gui_chassis);

%-------------------------------------------------------------------------------------------------------
function pushbutton_ok_Callback(hObject, eventdata, handles)

typeofpeakval = get(handles.popupmenu_typeofpeak, 'Value');      % 1, 2
numsampleval  = get(handles.popupmenu_neighborhood, 'Value')-1;  % 0,1,2,3,...,50
locpeakrepval = get(handles.popupmenu_replacelocpeak, 'Value');  % 1,2,3
fracval       = get(handles.popupmenu_fracpeak, 'Value')-1;        % 1,2,3,...,100
fracrepval    = get(handles.popupmenu_replacefracpeak, 'Value'); % 1,2

handles.output = [typeofpeakval, numsampleval, locpeakrepval, fracval, fracrepval];
% Update handles structure
guidata(hObject, handles);
uiresume(handles.gui_chassis);

% -----------------------------------------------------------------------
function gui_chassis_CloseRequestFcn(hObject, eventdata, handles)
if isequal(get(handles.gui_chassis, 'waitstatus'), 'waiting')
        %The GUI is still in UIWAIT, us UIRESUME
        handles.output = '';
        %Update handles structure
        guidata(hObject, handles);
        uiresume(handles.gui_chassis);
else
        % The GUI is no longer waiting, just close it
        delete(handles.gui_chassis);
end