Clear Filters
Clear Filters

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

59 views (last 30 days)
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

Accepted Answer

John D'Errico
John D'Errico on 7 Dec 2017
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 Comments
Allan Levy
Allan Levy on 19 Apr 2021
Hi, do you know how to solve this probleme when the app is generate by Compiler and launched with MCR ?

Sign in to comment.

More Answers (1)

dror yemini
dror yemini on 7 Jul 2019
you may opened in bin folder of matlab change to your local code folder

Categories

Find more on 安装和许可简介 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!