I can't copy the files, received unknown error
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mehtap agirsoy
el 25 de Jun. de 2021
Comentada: mehtap agirsoy
el 25 de Jun. de 2021
I am trying to copy files to a new folder but I have received unknown error. I used similar code before and copyfile command worked well but this time it doesn't. I couldn't figure it out. Could you please help? Thanks in advance
2 comentarios
Respuesta aceptada
Walter Roberson
el 25 de Jun. de 2021
% Mean Velocity
filename = sprintf('M1_Normal_T%d_%s_M_Vel.dat',j,word);
allFileInfo = fullfile(start_path,filename);
filename refers to a file that lives under start_path but the filename variable does not include that path information.
copyfile (filename ,fold2);
but there it is being referred to as if it is in the current directory.
3 comentarios
Walter Roberson
el 25 de Jun. de 2021
You have
filename = sprintf('M1_Normal_T%d_%s_M_Vel.dat',j,word);
allFileInfo = fullfile(start_path,filename);
so allFileInfo is already the qualified version of the file name. copyfile(allFileInfo, fold2)
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!