problem when using cd command

I define my path as:
CurrPath = 'C:\Users\chaos\Desktop\cse_587\hw6';
What is wrong with issuing these commands?:
>> cd CurrPath or >> cd('CurrPath')
Both gives this error:
Error using cd
Cannot CD to CurrPath (Name is nonexistent or not a directory).
Best Regards,

Categories

Community Treasure Hunt

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

Start Hunting!