- You can check the permissions to the folder and update permissions to allow your user account to write into the location. Please refer to this MATLAB answer thread for more information on how to check and modify permissions: https://www.mathworks.com/matlabcentral/answers/465517-why-does-the-matlab-update-fail-with-access-denied
- Open MATLAB as an administrator and run your command/program again.
- If you are running the command from inside the MATLAB directory. Try running the command from a different location, like your home directory.
- https://www.mathworks.com/matlabcentral/answers/843430-unable-to-write-file-permission-denied
- https://www.mathworks.com/matlabcentral/answers/2820-cannot-write-to-this-folder-permission-denied-issue