Error using save Unable to write file generation: permission denied.

13 ビュー (過去 30 日間)
Patrice Gaofei
Patrice Gaofei 2017 年 12 月 7 日
コメント済み: Allan Levy 2021 年 4 月 19 日
hello everyone after running my program, i can not save any of my variables. i do not understand why is wrong with my matlab, this does not often happen. generation.XTrainSet = TrainSET; generation.YTrainLabels = TrainLabels; generation.XTestSet = TestSET; generation.YTestLabels = TestLabels;
save generation_data generation
when i try saving this variable, this is the error i got:Error using save Unable to write file generation: permission denied. could anyone help me out, thanks

採用された回答

John D'Errico
John D'Errico 2017 年 12 月 7 日
You lack write access in the current directory.
So either change the privileges in that directory, or you need to CD to a directory where you do have write access.
help cd
help pwd
  5 件のコメント
Krishna Anand
Krishna Anand 2021 年 3 月 22 日
how did you solve the problem?
Allan Levy
Allan Levy 2021 年 4 月 19 日
Hi, do you know how to solve this probleme when the app is generate by Compiler and launched with MCR ?

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

その他の回答 (1 件)

dror yemini
dror yemini 2019 年 7 月 7 日
you may opened in bin folder of matlab change to your local code folder

カテゴリ

Help Center および File Exchange代码生成 についてさらに検索

Community Treasure Hunt

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

Start Hunting!