Why is permission denied to save workspace variables?
Show older comments
I want to save my workspace variables with function "save something.mat" and it says: Error using save Unable to write file something.mat: permission denied. Why it happens? How can I change it? Thank you very much.
Accepted Answer
More Answers (2)
Walter Roberson
on 24 Aug 2015
1 vote
If you are using an icon to start MATLAB then your default directory is probably the directory the MATLAB executable is in rather than your home directory.
Also, in MS Windows Vista and later, the directories that applications are installed in are not writable except by Administrator. If your current directory is somewhere under the MATLAB installation you will not be able to save files there.
1 Comment
mohit bajaj
on 24 Jun 2020
please ellaborate more
Paulius Vaikasas
on 24 Aug 2015
0 votes
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!