Matlab can't find my file .m
Show older comments
I am trying to do a home work, I have given a code to work on, but MATLAB can't find it's location.
Before you say anything about me posting useless question, yes I have tried to solve this myself using this forum.
At this point i have tried to copy paste the code to create new file, but that won't work as well.
p.s. I am no pro in using MATLAB.

1 Comment
It appears that you installed MATLAB to your user's directory, rather than the default Program Files directory (where most applications install on Windows PCs).
You should install MATLAB in the default directory, or possibly in a MATLAB folder on your main disk, but certainly not in a user directory that you then try to use for saving and manipulating your own files in. Application installation folders are usually protected for security and robustness reasons, so the fact that you are trying to work in an application installation directory is a sign of massive weakness and vulnerability on your PC. MIxing your personal data files and application files is a terrible idea.
By the way, this applies to all applications, not just MATLAB: in general they should be installed to your Program Files folder (or similar) and you should NOT be working in the installation folder (or any folder under it).
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!