When creating new .m files, whenever I attempt to save the file, after choosing the filename I get a pop-up message "File not found. Check the file name and try again".
Something similar happens when modifying existing .m files, for which I get a pop-up message "Error writing <filename>. Access is denied".
It does not seem to matter where I try to save the file. I have administrator privileges to the folder I am trying to save to and I have tried running MATLAB as an administrator and it still does not work.