MATLAB Answers

Copyfile: No matching files were found

139 views (last 30 days)
Abhinav
Abhinav on 26 Apr 2018
Commented: Andrew Mohan on 30 May 2018
This is the example of a code I am writing:
filename=strcat('p_',prcp_lat(i),'0','_',prcp_long(i),'0','.txt');
source=fullfile('D:\Research\Thesis_work\Structural_uncertainty\Precipitation\precip',filename);
destination=fullfile('D:\Research\Thesis_work\Structural_uncertainty\MatLab_codes\20180222\huc_0512011115',rainfall_data');
copyfile source destination
I get an error 'No matching files were found'. I see other people have had this error. But I am still not able to figure out the problem.
Please, help!

  0 Comments

Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 26 Apr 2018
use
copyfile(source, destination)

  2 Comments

Andrew Mohan
Andrew Mohan on 30 May 2018
I've been struggling with this issue for the better part of today and am so relieved to see your helpful suggestion for the file copy issue. Thank you.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products