Error Message - File is Not Writable (Simulink 2019a)

When saving a Simulink file (slx or mdl) a message appears "The file "C:\pathname\filename.slx" you are trying to save is not writable. Simulink can attempt to make it writable." After selecting option "Make Writable and Save" an error message appears: "The file C:\pathname\filename.slx" you are trying to save is not writable." The file was originally created in release 2018a and did not have this issue when saving. Similar messages occur when attempting to export back to release 2018a. How can a file be made writable?

5 comentarios

Does the file already exist and you are trying to overwrite it? If so then what are its permissions?
If not, then what are the permissions on the directory ?
Roy
Roy el 2 de Ag. de 2019
Yes, the file exists and attempting to overwrite with same name. The permissions are set to allow read and write (including in the particular directory). However does allow writing the slx file to a new name (but that new file name is not writable once created).
It has been a while since I looked at the details of Windows directory security.
I know that in Unix, there is an oddity where you need one permission (typically referred to as 'x' in Unix) to determine whether the file exists, and that is a different permission than writing a new file to a Unix directory (typically referred to as 'w' in Unix)
Generally speaking, the kind of issue you are facing can be caused by not having the right kind of read permissions on the directory.
Bill Meyer
Bill Meyer el 27 de Ag. de 2019
Hello Mathworks - any update here?
I'm seeing the same exact problem running Matlab/Simulink 2019a on a PC and accessing/storing models on a linux file server. The permissions on the linux file server are wide open - RWX allowed for all - and still the "file is not writable" error occurs when I try to save.
I will try moving my repository to the same PC where the Matlab license is installed ... removing the linux file server & samba from the equation. However my confidence of success is not high based on Roy's earlier post.
Arash Moradi
Arash Moradi el 11 de Sept. de 2020
I have the same problem. I cannot save any simulink file. Once I am trying to save my file, I get the message "the file ... you are trying to save is not writable." After any modification I need to save the file with a new name. Please advise me on this matter.

Iniciar sesión para comentar.

Respuestas (2)

Roy
Roy el 2 de Ag. de 2019

0 votos

Thanks, I am checking on the permissions. However, this is not an issue when running Simulink 2018a that's installed on same machine and accessing files in the same directories...
Christoph Aistleitner
Christoph Aistleitner el 12 de Jul. de 2021

0 votos

Try to uninstall MatLab and reinstall it directly onto your main hardrive (for me it was C:).
Fixt the problem for me.
Hope this helps...

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Etiquetas

Preguntada:

Roy
el 2 de Ag. de 2019

Respondida:

el 12 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by