MATLAB: How to access a directory with spaces in its name in Microsoft Windows

cdchchangedirectoryMATLABspaces

When issuing a CD command to a directory with spaces in it such as:
c:\test lab
This error occurrs:
??? Error using ==> cd
Too many input arguments.

Best Answer

Here is an example of how to do this from within MATLAB.
To access the directory:
c:\test lab\data set
This command can be used:
cd 'c:\test lab\data set'