由于我的中文水平有限,我用英文回答这个问题。
Based on my understanding, you are encountering this error because you lack the required permissions to write to the folder where MATLAB is attempting to install the add-ons. Here are some possible solutions to address this issue:
- Run the MATLAB installer as an administrator, which may resolve the access issue. You can do this by right-clicking on the installer and selecting 'Run as administrator'.
- Ensure that you have write permissions for the folder where MATLAB is trying to install the toolbox. Check this by right-clicking on the folder, selecting 'Properties', and then navigating to the 'Security' tab. If you do not have write permissions, you will need to modify the permissions or choose a different installation location. For more details, refer to the following documentation link: https://www.mathworks.com/help/install/ug/install-using-a-file-installation-key.html
You can refer to the following MATLAB answer thread that elaborates on resolving errors caused due to insufficient permissions: https://www.mathworks.com/matlabcentral/answers/489806-why-do-i-see-the-error-something-unexpected-occurred-when-installing-mathworks-products#:~:text=to%20install%20to.-,Add%2DOn%20Explorer%2C%20while%20installing%20toolboxes,-This%20error%20may
Additionally, you can look at the following MATLAB Answer threads for more information on resolving this error:
- https://www.mathworks.com/matlabcentral/answers/2081056-while-installing-add-on-it-gives-you-do-not-have-write-permissions-to-folder-e-basecode-sm-u?s_tid=prof_contriblnk
- https://www.mathworks.com/matlabcentral/answers/270348-how-can-give-an-user-writing-permission-to-a-matlab-folder
- https://www.mathworks.com/matlabcentral/answers/2820-cannot-write-to-this-folder-permission-denied-issue