How do I access a directory with spaces in its name in Microsoft Windows?

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.

 Accepted 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'

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!