MATLAB: Does the MKDIR function return an error when the second input argument ends with a backward slash in MATLAB 7.0.4 (R14SP2)

/\childdirectoryforwardmakeMATLABnestedparent

In MATLAB 7.0.4 (R14SP2), when I type the command
mkdir('test','test\')
the result is the following error:
??? Error using ==> mkdir
The system cannot find the path specified.
However, in MATLAB 7.0.1 (R14SP1), when I type
mkdir('test','test\')
the function performs as expected and does not return any error.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.4 (R14SP2) that shows up when using the MKDIR function with the second input argument containing a backward slash at the end of the string. To work around this issue, use the following command instead:
mkdir('test','test')