Why is permission denied to save workspace variables?

6 ビュー (過去 30 日間)
Paulius Vaikasas
Paulius Vaikasas 2015 年 8 月 24 日
コメント済み: mohit bajaj 2020 年 6 月 24 日
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.

採用された回答

Bjorn Gustavsson
Bjorn Gustavsson 2015 年 8 月 24 日
Perhaps you don't have write permissions in the directory where you try to save the results. In that case it might be for a good or bad reason - I typically have disabled write permissions in my directories where I save my raw-data (In my case for good reason based in self-preservation), so I read data from there and save my results in some adjacent work/analysis/results-directory.
HTH

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 8 月 24 日
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 件のコメント
mohit bajaj
mohit bajaj 2020 年 6 月 24 日
please ellaborate more

サインインしてコメントする。


Paulius Vaikasas
Paulius Vaikasas 2015 年 8 月 24 日
Thank you for your answers.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by