Hi All,
When running the following piece of code from the BEAR toolbox from the european central bank:
delete([pref.datapath filesep 'results' filesep pref.results_sub '.xlsx']);
% then copy the blank excel file from the files to the data folder
sourcefile=[pwd filesep 'results.xlsx'];
destinationfile=[pref.datapath filesep 'results' filesep pref.results_sub '.xlsx'];
line 7: copyfile(sourcefile,destinationfile);
I get the following error
Error using copyfile
The system cannot find the path specified.
Error in initexcel (line 7)
copyfile(sourcefile,destinationfile);
However I downloaded the toolbox from the internet including all files in it thus I do not understand why it cannot find the files. I can find the results.xlsx file in the folder files.