Error using CopyFile in a script

Hello,
Does someone has an idea about the meaning of the error signification as below :
Error using copyfile, No matching files were found.
The code is :
copyfile ([chemin_data nom_data], chemin_resultats_data);
Idon't know what xhat could be the problem.....
Thank you in advance for your help,
Sincerely,
T.

댓글 수: 5

What is the value of the string from
[chemin_data nom_data],
? Is it a valid path to a file that exists on your workstation? Similarly, what is assigned to the target file chemin_resultats_data?
tl31
tl31 2019년 6월 17일
It also indicates : Error while evaluating Menu Callback...
Geoff Hayes
Geoff Hayes 2019년 6월 17일
But what are the values assigned to each of these variables? When conctatenated together, do they represent a valid path and name of a file that you want to copy? Please copy and paste the values assigned to each of these three variables so that we can better understand the error message.
tl31
tl31 2019년 6월 17일
Please find the entire script below, the path already exists, i mean.
global chemin_data
global nom_data
global chemin_resultats_data
chemin_resultats_data=[chemin_data 'results' nom_data '\'];
sta=mkdir(chemin_resultats_data);
copyfile([chemin_data nom_data], chemin_resultats_data);
Geoff Hayes
Geoff Hayes 2019년 6월 17일
But what are the values assigned to chemin_data and the other two global variables? Whare is the code that assigns values to them? Please show this.
Also, why are you using global variables?
When building paths to files, please consider using fullfule.

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

답변 (1개)

Krishna Anne
Krishna Anne 2019년 6월 17일

0 개 추천

Make sure the destination folder or filename is correct and/or it exist.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2019년 6월 17일

답변:

2019년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by