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_single_trial_amplitude.m
    path of file: ./repos/bspm/thirdparty/MIALAB/GroupICATv4.0a/icatb/icatb_helper_functions
    
    the code of the file until where you have to start completion: function icatb_single_trial_amplitude(param_file)
%% Calculate and plot single trial amplitudes. To use this utility
% you need to temporally sort components using the regressor of interest in Sorting
% GUI.
%
% Inputs:
% 1. param_file - Parameter file
%

%% Load defaults
icatb_defaults;
global PARAMETER_I
    
function regressorNames = getRegressorsTextFile(regressTxtFile, numOfSub, numOfSess, numComp)
%% Get regressors from temporal sort text file
%

% Get only the first column
formatStr = ['%s', repmat('%*s', 1, numComp)];

all_lines = textread(regressTxtFile, formatStr, 'delimiter', '\t', 'whitespace', '');

%% Remove blank spaces
good_ind = icatb_good_cells(all_lines);
all_lines = all_lines(good_ind);

%% Check if the temporal sort is done on all data-sets
startInd = regexpi(all_lines, '^temporal sorting');

startInd = find(icatb_good_cells(startInd) ~= 0);

if isempty(startInd)
    error('You need to run temporal sorting on all data-sets');
end