- the file exists and is open by an application (matlab or something else)
- you do not write access to the current directory
- your antivirus is messing things up
- this is on a network share and the file server has a rule blocking files with a pattern that match yours
- etc.
cannot save a matlab variable
3 ビュー (過去 30 日間)
古いコメントを表示
hi,
Everytime i try to save a variable into matlab file, it appears like this
>> save('28-10-2015 list of 87 gap reaction.mat','gapEquation')
Error using save
Unable to write file 28-10-2015 list of 87 gap reaction.mat: permission denied.
does any of you know how to fix it?
im using matlab version R2014b
thanks,
0 件のコメント
採用された回答
Guillaume
2015 年 10 月 28 日
Most likely, the issue is not with matlab. There can be may reasons why a permission denied error occurs:
Can you save the file with a different filename? Can you save it in a different location? Can you save any mat file?
4 件のコメント
Guillaume
2015 年 10 月 28 日
Indeed that's been standard windows behaviour since Windows 7 for the OS to prevent you from writing files in the 'Program Files' directory. There are ways to bypass this but in any case, you really shouldn't be saving your mat files there. By default matlab home directory is in 'My Documents'. Why don't you save there.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!