problem when using cd command

1 view (last 30 days)
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,

Accepted Answer

Walter Roberson
Walter Roberson on 5 May 2013
cd(CurrPath)

More Answers (1)

riza.bayoglu@du.edu
riza.bayoglu@du.edu on 5 May 2013
Thank you :))

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!