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
Best Answer