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: icatb_eeg_displayGUI.m
    path of file: ./repos/gift/GroupICAT/icatb/toolbox/eegiftv1.0c/icatb_eeg_files
    
    the code of the file until where you have to start completion: function icatb_eeg_displayGUI(paramFile)
% Display GUI for displaying EEG components

% Load defaults
icatb_defaults;

global PARAMETER_INFO_MAT_FILE;
global UI_FONTNAME;

% load parameters file
filterP = ['*', PARAMETER_INFO_MAT_FILE, '*.mat'];
if ~exist('paramFile', 'var')
    [paramFile] = icatb_selectEntry('typeEntity', 'file', 'title', 'Select Parameter File', ...
        'filter', filterP);
end

drawnow;

[
    
function locsFileCallback(hObject, event_data, handles)
% Select EEG locs file

handles_data = get(handles, 'userdata');
dispParameters = handles_data.dispParameters;

paramFile = dispParameters.paramFile;

selectLocsFile(paramFile);

drawnow;

function timeScaleCallback(hObject, event_data, handles)
% Select time scale file

handles_data = get(handles, 'userdata');
dispParameters = handles_data.dispParameters;

paramFile = dispParameters.paramFile;

load(paramFile);

timeScaleFile = icatb_selectEntry('title', 'Select time scale for the EEG signal', 'typeEntity', 'file', 'filter', '*.set;*.asc;*.dat', ...
    'typeSelection', 'single');

drawnow;

if isempty(timeScaleFile)
    error('Time scale file for plotting EEG signal is not selected.');
end