From: Md Sahidullah on
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(a)diamondair.com> wrote in message <hd9da6$cp0$1(a)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.