MATLAB: Problem when using cd command

cdchange directory

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,

Best Answer

cd(CurrPath)