Matlab show the error of access denied.

Dear All
I am using matlab 2018b but now its showing error when i edit any file or while saving it.
Untitled.png

Réponses (1)

Walter Roberson
Walter Roberson le 2 Déc 2019

0 votes

If you absolutely positively must edit a file that is stored in one of the MATLAB installation directories, then you need to use Run As Administrator for your MATLAB session.
However, what you should be doing instead is storing the files somewhere that is not under a MATLAB installation directory. Your entire Real experiments directory should probably not be stored under the MATLAB installation directory.

4 commentaires

Ali Asghar
Ali Asghar le 2 Déc 2019
Dear
last week i edited file in same directories but yet its not.
1- I saved files in my google drive and then try to edit it, luckly i now edit it but at end of program i wrote save data.mat command to save data file but it show error while saving the file.
2- When i copy files from google drive to C drive of mycomputer then i cant edit it.
I already change the path but thats not worked.
Thank you
Walter Roberson
Walter Roberson le 2 Déc 2019
R2018b is not supported on Windows 7 or earlier. If you are using Windows 8 or later then the operating system itself prevents you from storing files inside C:\Program Files
Ali Asghar
Ali Asghar le 3 Déc 2019
I am using windows 10
Walter Roberson
Walter Roberson le 3 Déc 2019
Windows 10 is designed to prevent you from writing into C:\Program Files .
At this point, the question is no longer why it does not work now (it is Windows 10 security and always has been for Windows 10); the remaining question is why it ever worked at all. There is a Windows Registry entry that can be used to turn off the protection of C:\Program Files and it is possible that had been set, disabling important system security.
You should give up on hoping to be able to write into C:\Program Files and move the files to a different directory.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Share and Distribute Software dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by