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: arNEBMakeDataFilesCSV.m
    path of file: ./repos/d2d/arFramework3/NEB
    
    the code of the file until where you have to start completion: function  arNEBMakeDataFilesCSV(name,steps)
% generates data def files and data tables for NEB method

    
function  arNEBMakeDataFilesCSV(name,steps)
% generates data def files and data tables for NEB method
%
% name      filename of data file template in the Data folder without suffix '_NEB_XXX.csv'
% setps     number of nodes of the band
%
% See also arNEBMakeDataFilesXLSX arNEBMakeDataFilesXLS arNEBMakeModelFiles


path  = [ 'Data/' name ];
path_read  = [ 'Data/' name '_NEB_XXX.def'];    

data_file = [ 'Data/' name '_NEB_XXX.csv'];    

fid = fopen(path_read,'rt');
X = fread(fid) ;
fclose(fid) ;
X = char(X.') ;

%OUT = {};

% replace strings
for i = 1:steps
    nebstring = sprintf('%03d', i);
    Y = strrep(X, '_NEB_XXX', ['_NEB_' nebstring ]) ;
    fid2 = fopen([path '_NEB_' nebstring '.def'],'wt') ;
    fwrite(fid2,Y) ;
    fclose (fid2) ;
    
    copyfile(data_file, [path '_NEB_' nebstring '.csv'])
    
end