Borrar filtros
Borrar filtros

Error writing name_file.m. Access denied.

107 visualizaciones (últimos 30 días)
michele paoletti
michele paoletti el 15 de Feb. de 2019
Comentada: johnny ramone el 30 de Jun. de 2023
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 comentarios
Mehul Mulay
Mehul Mulay el 27 de Sept. de 2021
Hi!
I have faced a similar problem on MacOS.
Please let me know the solution..
Andy Mendez Cuello
Andy Mendez Cuello el 15 de Sept. de 2022
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.

Iniciar sesión para comentar.

Respuesta aceptada

michele paoletti
michele paoletti el 18 de Feb. de 2019
Editada: michele paoletti el 18 de Feb. de 2019
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 comentarios
michele paoletti
michele paoletti el 19 de Feb. de 2019
Very good, you're welcome!
karthikeya anil kumar
karthikeya anil kumar el 9 de Mzo. de 2019
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

Iniciar sesión para comentar.

Más respuestas (3)

Supratim Shit
Supratim Shit el 9 de Mayo de 2019
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 comentarios
Kevin Tapia Pantoja
Kevin Tapia Pantoja el 4 de Ag. de 2022
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 el 30 de Jun. de 2023
After almost a year sundelly the Ransomware protection blocked matlab, just go to recently block app and allow it. Thank you <3

Iniciar sesión para comentar.


Pruthvi Muppavarapu
Pruthvi Muppavarapu el 18 de Feb. de 2019
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 el 24 de Mayo de 2021
what worked for me was :
first go to search bar on windows-type matlab-run as admin

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by