how to get rid of the error like "unable to create new file you may not have permission " on my current folder?

6 views (last 30 days)
how to get rid of the error like "unable to create new file you may not have permission " on my current folder?

Accepted Answer

Walter Roberson
Walter Roberson on 6 Nov 2018
  • cd to a different folder, or
  • use your operating system facilities to give yourself permission to write into that folder, or
  • in Windows, Run As Administrator. For Linux and Mac, using sudo to run MATLAB is not equivalent, because sudo will change your user identity and MATLAB will say that you are not an authorized user, or
  • if your directory is underneath where programs are installed in Windows then there is a way to disable that Windows protection feature
Of these, only cd to a different directory is recommended, but there are cases where sometimes adjusting the security settings is the necessary solution.

More Answers (0)

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!