Effacer les filtres
Effacer les filtres

Unable to write to Simulink cache file 'C:\modelname.slxc' because you do not have write permission for the file.

73 vues (au cours des 30 derniers jours)
when I am trying to generate c code from my model, I encounter this error, how to resolve this?
Unable to write to Simulink cache file 'C:\modelname.slxc' because you do not have write permission for the file.

Réponses (2)

Walter Roberson
Walter Roberson le 9 Juil 2023
Déplacé(e) : Walter Roberson le 10 Juil 2023
I mean C:\ itself not somewhere inside of the C drive.
You would get this error if your current directory is C:\ itself. Your current directory needs to a directory that you have write access to.
  5 commentaires
Tejas
Tejas le 22 Sep 2023
Just go to your MATLAB home page, and change the folder where your model is saved..
like this example: there is a folder icon with green arrow --> just change that to the folder where your simulink model is saved... that will change to right directory..

Connectez-vous pour commenter.


Adeel
Adeel le 1 Juin 2024
Error:Unable to write to Simulink cache file 'E:\Laptop Data\Personal\PHD DATA\UW\PI\MyModel.slxc' because you do not have write permission for the file.

Catégories

En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by