Error writing name_file.m. Access denied.
105 ビュー (過去 30 日間)
古いコメントを表示
michele paoletti
2019 年 2 月 15 日
コメント済み: johnny ramone
2023 年 6 月 30 日
Hi everyone, I have a sudden problem when I try to save or run the file. The error window say "Error writing name_file.m. Access denied". It's really strange because it has always worked well. I tryed to:
- Change path location
- Open Matlab as administrator
- Change Matlab version from 2016 to 2018
- Change Matlab file
But i have always the same problem. I can not understand what the problem could be. This is the screenshot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/204312/image.gif)
6 件のコメント
Mehul Mulay
2021 年 9 月 27 日
Hi!
I have faced a similar problem on MacOS.
Please let me know the solution..
Andy Mendez Cuello
2022 年 9 月 15 日
Hi.
I have a Windows 10 Pro, I had the same problem and in the end it was for safety issues for applications control, I gave him to allow change in Matlab and I stopped giving me that mistake.
Greetings.
採用された回答
michele paoletti
2019 年 2 月 18 日
編集済み: michele paoletti
2019 年 2 月 18 日
3 件のコメント
karthikeya anil kumar
2019 年 3 月 9 日
yeah, thats the correct way of solving error, or even some times we need to change the secutity settings of a entire drive or for folders in which you are trying to save the (.m) MATLAB FILE.![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207623/Capture.png)
![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207623/Capture.png)
その他の回答 (3 件)
Supratim Shit
2019 年 5 月 9 日
You are facing this issue becasue of a feature called controlled folder access in Windows 10. It helps you protect valuable data from malicious apps and threats, such as ransomware.
You need to go to Settings > Update & Security > Windows Security > Virus and Threat protection > Manage Ransomware Protection > Allow an app through controlled folder access > Add your application
10 件のコメント
Kevin Tapia Pantoja
2022 年 8 月 4 日
This is the right answer, I was working well until I activated the Ransomware protection but I just didn't allow Matlab. Thank you
johnny ramone
2023 年 6 月 30 日
After almost a year sundelly the Ransomware protection blocked matlab, just go to recently block app and allow it. Thank you <3
Pruthvi Muppavarapu
2019 年 2 月 18 日
Disabling the anti-virus might help resolve the issue.
If you are using Windows Defender; an exclusion may need to be made for MATLAB. This can be done in Windows 10 by following the steps mentioned in the link:
Pratibha Dimri
2021 年 5 月 24 日
what worked for me was :
first go to search bar on windows-type matlab-run as admin
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!