View Full Version : Matlab Emergency
Clausius2
Oct7-04, 06:20 AM
I've written over an existing file in Matlab (.m extension). But I'm stupid because I didn't want to do that.
HOW CAN I RESTORE THE PROGRAM AS WHEN IT WAS BEFORE WRITTING OVER IT?. Is there anyway to restore or to undo this?
Brrr......I'm furious. :mad:
Thanks if you help me.
Clausius2
Oct7-04, 06:28 AM
I've lost a lot of days work!!!!!.....
:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
:mad: :mad: :mad: :mad: :mad: :mad: :mad:
daskdjlsadjhsilfuishjhjsdhbncbjhfffffffffff....... ..sdarrrrrrrrrrrr......
The undo command (the left arrow above) doesn't works....
Do you mean you wrote over the file on the disk? Or that you deleted unsaved work from an open file and can't restore it?
Which OS are you using? I've never used Matlab, but depending on the circumstances I might be able to help recover the file.
Clausius2
Oct7-04, 08:17 AM
Thanks. After a few time I run the program (Matlab automatically saves the program while running) I did something stupid (I saved it writting over it a single variable in ascii format). Now, when I open the program I saw nothing. Is there any memmory inside the Windows XP that stores the latest datas, although someone had written over it?
Is there any memmory inside the Windows XP that stores the latest datas, although someone had written over it?
Now.. which filesystem are you using?
maybe you should try to recover it by using a data-recovery programm...
greets
soeren
Clausius2
Oct7-04, 11:56 AM
Now.. which filesystem are you using?
Hi soeren. What do you mean?
i mean if you use ntfs or fat32 or something like that..
click right on "C:" and go to the last point (properties or something like that)
there must be something be like:
filesystem is:
and that's interesting.
greets
soeren
ah.. one question more:
how big was the file?
and do you have an knoppix-cd?
http://knopper.net/knoppix/index-en.html
soeren
edit:
i think, you have got NTFS (new technology file system :rolleyes: )
which is the standard at windows xp and 2000.
You should try this (i don't know how to recover NTFS -Data with knoppix)
http://www.runtime.org/datarecovery.htm
It's important that you don't boot from the Harddisk you want to recover..
That's the reason why i like it to do this with knoppix....
But MS isn't very cooperative, concerning ntfs and free standards... :frown:
Another tool you should try is this:
http://www.sf-soft.de/winhex/index-m.html
AFAIR you can with that recover data until the size of 200KB.
But i'm not sure.
hope, i helped...
greets
soeren
Thanks. After a few time I run the program (Matlab automatically saves the program while running) I did something stupid (I saved it writting over it a single variable in ascii format). Now, when I open the program I saw nothing. Is there any memmory inside the Windows XP that stores the latest datas, although someone had written over it?
I don't quite everything understand yet.
Matlab automatically saves files. OK, that means the file is (or has been) on the disk.
"I saved it writting over it a single variable in ascii format" -- this I don't understand. Are you saying that the contents of the file is now one character? That the name of the file is now one character?
It is not clear from your post whether or not you have a good understanding of computers (so I apologize if the following question is too obvious). Have you, for example, looked in the folder on the hard drive to see if the file is still there?
If what happened is that you saved the file to disk with only one character in the file, I suspect you will need a recovery program like soeren suggests. But if you have been using the same computer for other things since this happened, there is a good chance that the data has been written over.
Goalie_Ca
Oct8-04, 12:29 AM
heh, last night (long night, ended at 3:30am, gotta love engineering) at the end of everything i was using octave (GNU/Matlab :P) and i was piping the results out to a text file, but tired me hit tab (in bash) and piped over my matlab file :(
Clausius2
Oct8-04, 03:31 AM
Thanks Soeren, Plover and Goalie_Ca for your help.
Plover, sorry for my bad explanation. I do not want you to think about me I don't have any idea about computers (by the way I'm not an expert :tongue2: ). Maybe is a problem of language.
Anyway thanks for the help and links, guys. I have chosen a third solution:
Rewrite the program. :cry: (and I almost have written it yet).
Thanks, thanks, thanks....
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.