copyfile function target folder name problem
이전 댓글 표시
I want copy a file to a targer folder but met a problem.
if the targer folder name is consecutive ('no space'), it works fine, but when a space is added to the folder name, it will report error, below is the test code:
test=rand(5,5);
save test test
newFolder='abc de';
mkdir(newFolder)
eval(['copyfile test.mat ',newFolder])
is there anyway to solve this problem
Thanks!
Yu
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Tuning Goals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!