dlmwrite([path file],....) does not work on Mac OS?



The following code should create a subdirectory in the current working directory and write a file into that directory:

A = ones(10);
path = strcat(pwd,'\dlmtest\');
name = 'dlmA';
mkdir(path)
dlmwrite([path name],A,'\t');

Obviously this works on Windows platforms, but on my Mac platform, the subdirectory is created but no file is written.

Are there some Mac-users who could confirm this?

Thanks, Michael
.