Disable mfile / model overwriting

3 views (last 30 days)
Markus on 1 Jul 2013
When I try to save a model or mfile which is read-only, a dialog appears, asking me whether ML/SL should try to make files writable or not.
Since those files are under source-control, making them writable would lead to inconsistencies and is not an option.
Because some people working with those files might click the wrong option (Make Writable) in the dialog, I do not want it to appear. How can this be achieved - for both Matlab and Simulink?

Answers (1)

Jan on 1 Jul 2013
This is a job for the operating system: Restrict the write access for users, who are not allowed to save the file.
Unfortunately the dialog wil most like appear again, but the user is asked for a new file name.
  1 Comment
Markus on 2 Jul 2013
I think the problem is that the users shall have complete access, but only if the file is checked-out in the source-control system. Hence it is not wanted to permanently force the read-only status of a file (or something like that) on the operating system basis. I would be best to switch of this "Make Writable" in Matlab/Simulink therefore.

Sign in to comment.


Find more on Simulink Environment Customization in Help Center and File Exchange



Community Treasure Hunt

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

Start Hunting!