How do I copy some files to another folder?
2 次查看(过去 30 天)
显示 更早的评论
I have a 10x1 string array which represents a list of files that I want to copy to a different folder
file_list =
10x1 string array
for j = 1:size(file_list,1)
copyfile file_list{j,:} destination_folder
end
I get the error
Error using copyfile
No matching files were found.
I guess the filename cannot be a string, but then what does it need to be?
0 个评论
采纳的回答
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!