MATLAB: How can I change directory of matlabfunction to a writable directory preferably outside of MATLAB installation area

matlab function

when I use matlab function error occur that [ The current directory is c:\program files\matlab\r2011a\matlab\bin, which is reserved for MATLAB files.
Please change your current directory to a writable directory preferably outside of MATLAB installation area.] from where can I change it?

Best Answer

cd(tempdir)
or
cd(userpath)