Unable to write to Simulink cache file 'C:\modelname.slxc' because you do not have write permission for the file.
81 次查看(过去 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
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 个评论
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!