Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab Emergency

  1. Oct 7, 2004 #1

    Clausius2

    User Avatar
    Science Advisor
    Gold Member

    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.
     
  2. jcsd
  3. Oct 7, 2004 #2

    Clausius2

    User Avatar
    Science Advisor
    Gold Member

    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....
     
  4. Oct 7, 2004 #3

    plover

    User Avatar
    Homework Helper

    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.
     
  5. Oct 7, 2004 #4

    Clausius2

    User Avatar
    Science Advisor
    Gold Member

    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?
     
  6. Oct 7, 2004 #5
    Now.. which filesystem are you using?

    maybe you should try to recover it by using a data-recovery programm...

    greets
    soeren
     
  7. Oct 7, 2004 #6

    Clausius2

    User Avatar
    Science Advisor
    Gold Member

    Hi soeren. What do you mean?
     
  8. Oct 7, 2004 #7
    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
     
  9. Oct 7, 2004 #8
    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
     
    Last edited: Oct 7, 2004
  10. Oct 7, 2004 #9

    plover

    User Avatar
    Homework Helper

    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.
     
  11. Oct 8, 2004 #10
    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 :(
     
  12. Oct 8, 2004 #11

    Clausius2

    User Avatar
    Science Advisor
    Gold Member

    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....
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Matlab Emergency
  1. & vs. && for MATLAB (Replies: 2)

  2. Matlab concatenation (Replies: 2)

  3. Matlab and physics (Replies: 3)

  4. MATLAB problem (Replies: 1)

  5. MATLAB histogram (Replies: 3)

Loading...