Why am I unable to copy to root directories of drives when using the COPYFILE function in MATLAB 7.0.1 (R14SP1)?
3 ビュー (過去 30 日間)
古いコメントを表示
When using non-English language settings in Windows, the COPYFILE function returns errors when attempting to write to "root" Windows directories such as A:\ and C:\. For example, the following command:
[status,message,messageid]=copyfile('a.mat','C:\a.mat','f')
Results in the the following contents of status and messageid:
status =
0
messageid =
MATLAB:COPYFILE:OSError
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.1 (R14SP1) that affects the way the COPYFILE function handles copying to "root" Windows directories on machines with non-English language settings. To work around this issue, you can use the DOS Copy command within MATLAB to copy files to "root" Windows directories as follows.
dos('copy a.mat C:\a.mat');
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!