Mike on the MATLAB Desktop

May 29th, 2007

Oops, I accidentally closed MATLAB!!

If you have always wanted a confirmation dialog to prevent you from accidentally closing MATLAB, we added one a few of releases ago (R14sp2). It is off by default, but you can easily enable it by going to Preferences, Confirmation Dialogs, and checking “Confirm before exiting MATLAB”. Voila, no more accidental quitting.

confirmexit.jpg

4 Responses to “Oops, I accidentally closed MATLAB!!”

  1. xristos replied on :

    Hi Kristin, sorry for wasting your time but i have a problem with an MATLAB algorithm i didn’t know where to ask.
    So i found your blog and i’ ll make a try.

    I’ve tried to run Fuzzy C Means MATLAB algorithm with the trivial case which is “clustering data in a unique center”.
    Check this out.

    [ center , U , obj_fnc ] = FCM( data , numberofCenters );
    As a result i take NaN for center and U output.

    Is it an arithmetic problem in the code of fcm function?
    Can this algo to run in trivial case?

    If you have time please send me a tip or whatever you think will be useful.

    Thank you

  2. Ethan Montag replied on :

    This is related to accidentally closing Matlab.

    I sometimes accidentally close my editor window. This is tragic because I have to try to remember all the m-files I was working on that I had attached to it.

    Is there a way to get it all back?

  3. Ken replied on :

    Hi Ethan,

    This is definitely something that has come up before! Safari, Firefox and IE all support the kind of warning you are requesting, so it seems logical that MATLAB would also support it.

    Unfortunately, there is currently no way to workaround this issue.

    I will create an enhancement request for this.

    -Ken

  4. seaar replied on :

    i need help for the fuzzy controller and truck demo
    thanks

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks
Mike works on the MATLAB Desktop team.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.