Error writing name_file.m. Access denied.

조회 수: 132 (최근 30일)
michele paoletti
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:
  댓글 수: 6
Mehul Mulay
Mehul Mulay 2021년 9월 27일
Hi!
I have faced a similar problem on MacOS.
Please let me know the solution..
Andy Mendez Cuello
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
michele paoletti 2019년 2월 18일
편집: michele paoletti 2019년 2월 18일
I solved the problem installing Matlab R2018b and going in C:\Program Files\MATLAB\ , add privileges access to the group called packet application:
But using Matlab R2016b the problem remain. I use now the new version to avoid this problem.
  댓글 수: 3
michele paoletti
michele paoletti 2019년 2월 19일
Very good, you're welcome!
karthikeya anil kumar
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

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Supratim Shit
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
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
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
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
Pratibha Dimri 2021년 5월 24일
what worked for me was :
first go to search bar on windows-type matlab-run as admin

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by