MATLAB: Why am i getting access is denied when i start typing

MATLABMATLAB and Simulink Student Suiteperformancepermission

Any time i start writing code in MATLAB now, new files and old alike. the file ill change and a * will be added at the end. (e.g. quiz.m to quiz.m*), when I try to run or save it says "Error writing quiz.m. Access is Denied". This happens with all of my files. not sure what to do?

Best Answer

The * on the tab means that the file has been changed compared to what is saved on disk.
It's telling you that access is denied because it's trying to do an autosave to the current folder, which you do not have permission to write to, like it's under C:\Program Files or somewhere. What is your current folder?
Or it's possible that quiz.m is open in some other program that has put a lock on it.