Thread Subject:
Permission Denied using save -append

Subject: Permission Denied using save -append

From: Megan

Date: 9 Nov, 2009 15:43:03

Message: 1 of 3

I have a script that reads in a single variable from a file (which only contains that variable), performs a couple of operations on it, and appends it to a pre-existing file. The file it is trying to save to is on our network drive, a location where I have read/write access. I've created the file I'm trying to add data to.

I recieve the following error message:
??? Error using ==> save
Unable to write file V:\Testing\...\DJet_003_Flt_073_ACRA_RAW.mat: permission denied.

Error in ==> HighSRmerge at 66
    save(SaveFileName, ParameterName, '-append');

Oddly, when the script fails, all of my variables are in the workspace, and typing in the excact same save line in the command window works.

For now, I can go through one variable at a time and perform the load/modify/save routine, but the script is already a work-around for the main program (which had problems due to the large variable size). The script did work on Friday for a similar situation, but with slightly smaller variables.

Does anyone have any ideas why the save command will work from the command window and not the script, and how to fix it?

Thanks.

Subject: Permission Denied using save -append

From: Md Sahidullah

Date: 16 Jan, 2010 14:27:02

Message: 2 of 3

Hi Megan,
I guess you are using windows xp/vista.
I have also faced the same problem. To solve it just write click on the harddrive where the file exist-->go to security-->select the user.
Then give all the writing/modification permission.

Hope this will solve you problem.


Thanking You.
Sahidullah

"Megan " <mrasila@diamondair.com> wrote in message <hd9da6$cp0$1@fred.mathworks.com>...
> I have a script that reads in a single variable from a file (which only contains that variable), performs a couple of operations on it, and appends it to a pre-existing file. The file it is trying to save to is on our network drive, a location where I have read/write access. I've created the file I'm trying to add data to.
>
> I recieve the following error message:
> ??? Error using ==> save
> Unable to write file V:\Testing\...\DJet_003_Flt_073_ACRA_RAW.mat: permission denied.
>
> Error in ==> HighSRmerge at 66
> save(SaveFileName, ParameterName, '-append');
>
> Oddly, when the script fails, all of my variables are in the workspace, and typing in the excact same save line in the command window works.
>
> For now, I can go through one variable at a time and perform the load/modify/save routine, but the script is already a work-around for the main program (which had problems due to the large variable size). The script did work on Friday for a similar situation, but with slightly smaller variables.
>
> Does anyone have any ideas why the save command will work from the command window and not the script, and how to fix it?
>
> Thanks.

Subject: Permission Denied using save -append

From: selim

Date: 13 Aug, 2012 00:28:06

Message: 3 of 3

have you changed the path of ''current folder'' .check your ''current folder'' if it is right path.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us