I started using MATLAB and wanted to change the Path. A window popped up and said, MATLAB is seeking permission to access this folder, do you want to grant it. I accidently clicked "No." How do I change that response and grant MATLAB permission?
To modify Matlab's path variable, you need access to:
fullfile(matlabroot, 'toolbox', 'local')
Here the path is stored in pathdef.m. Remember that this concerns all users of the computer.
You cann get write permissions to this folder in the Windows Explorer (right click on the folder, Properties, Security -> Set Permissions), or with chmod under MacOS and Linux in a shell of the operating system.