필터 지우기
필터 지우기

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

조회 수: 73 (최근 30일)
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.

답변 (2개)

Walter Roberson
Walter Roberson 2023년 7월 9일
이동: Walter Roberson 2023년 7월 10일
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
Tejas
Tejas 2023년 9월 22일
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..

댓글을 달려면 로그인하십시오.


Adeel
Adeel 2024년 6월 1일
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.

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by