What does
cd
matlabpath
return at the command line?
I can't get the above to fail so the issue is one of being in a write-protected subdirectory or trying to access a non-accessible networked drive or somesuch, not Matlab issue, per se...
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!