Azzera filtri
Azzera filtri

Error using CopyFile in a script

1 visualizzazione (ultimi 30 giorni)
tl31
tl31 il 17 Giu 2019
Risposto: Krishna Anne il 17 Giu 2019
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 Commenti
tl31
tl31 il 17 Giu 2019
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 il 17 Giu 2019
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.

Accedi per commentare.

Risposte (1)

Krishna Anne
Krishna Anne il 17 Giu 2019
Make sure the destination folder or filename is correct and/or it exist.

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by