How can I resolve this issue when I try to get c code from simulink model?

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.

Answers (1)

Re-start MATLAB, delete that .slxc file and try it again. If you can't delete that file, then you have to resolve the folder access right issue first. It has nothing to do with MATLAB.

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 1 Jun 2024

Answered:

on 1 Jun 2024

Community Treasure Hunt

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

Start Hunting!