From: Pouria on
i am also experiencing the same problem, on a random basis (i think, unless there is a solid reason) i get the unable to write to MAT-file error msg. sometimes it is a new file and sometimes when trying to rewrite the same file.

any information or discovery is much appreciated
i use Matlab 2008a(7.6.0.324)

Thanks

-P

JoeyB <joseph.burgel(a)gm.com> wrote in message <385f884f-927d-446b-91c7-d107b76cd9fc(a)z14g2000yqa.googlegroups.com>...
> On Mar 5, 2:05=A0pm, "Evi Daems" <evi_da...(a)hotmail.com> wrote:
> > Hi,
> >
> > Sometimes, when I try to save a matrix into a mat-file (save FileName Mat=
> rix ), I get the error: Unable to write to MAT-file FileName, File may be c=
> orrupt. When I try it a few times, sometimes it works, sometimes it fails. =
> First I thought it has something to do with the fact that the mat-file alre=
> ady existed, but also for new mat-files, it sometimes fails.
> > Has anybody have an idea how to solve this?
> >
> > Thanks!
> > Evi
>
> I'm having the same problem. This first attempt at save fails. The
> next works:
> ??? Error using =3D=3D> save
>
> Unable to write file
> C:\Work\AmbientCorrection\PLT_658_1ALN6412_WOT.mat:
> permission denied.