Copyfile: No matching files were found

조회 수: 12 (최근 30일)
Abhinav
Abhinav 2018년 4월 26일
댓글: Guillaume Baptist 2022년 2월 19일
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!

채택된 답변

Fangjun Jiang
Fangjun Jiang 2018년 4월 26일
use
copyfile(source, destination)
  댓글 수: 3
Andrew Mohan
Andrew Mohan 2018년 5월 30일
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.
Guillaume Baptist
Guillaume Baptist 2022년 2월 19일
solve the problem. Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by