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: CBIG_generate_covariates_from_csv.m
    path of file: ./repos/CBIG/utilities/matlab/predictive_models/utilities
    
    the code of the file until where you have to start completion: function [covariates] = CBIG_generate_covariates_from_csv( csv_files, subject_header, ...
    covariate_names, covariate_types, subject_list, FD_file, DVARS_file, outname, delimiter )

% [covariates] = CBIG_generate_covariates_from_csv( csv_files, subject_header, ...
%     covariate_names, covariate_types, subject_list, FD_file, DVARS_file, outname, delimiter )
% 
% This function reads the covariates of all subjects in "subject_list" from
% multiple CSV files delimited by "delimiter", and combine with mean FD and
% DVARS of each subject (if necessary).
% 

    
function [covariates] = CBIG_generate_covariates_from_csv( csv_files, subject_header, ...
    covariate_names, covariate_types, subject_list, FD_file, DVARS_file, outname, delimiter )

% [covariates] = CBIG_generate_covariates_from_csv( csv_files, subject_header, ...
%     covariate_names, covariate_types, subject_list, FD_file, DVARS_file, outname, delimiter )
% 
% This function reads the covariates of all subjects in "subject_list" from
% multiple CSV files delimited by "delimiter", and combine with mean FD and
% DVARS of each subject (if necessary).
% 
% Inputs:
%   - csv_files
%     A string or cell arrays for multiple CSV files containing covariates,
%     e.g. age, gend