Ken & 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).


Ken & Mike work on the MATLAB Desktop team.
  • DP: Hi i have a problem with ezplot3, i want to plot more than i curve in the same graph but hold on command...
  • Ken: Hi Arsalan, Unfortunately there is no way to get the new Editor API in older versions of MATLAB. -Ken
  • Arsalan: Hi, I am very excited about the MATLAB API for editor because right now i am working on a project and i need...
  • Johannes: Since I started using matlab-emacs some days ago I never experienced Emacslink. But I experienced some...
  • Francisco J. Beron-Vera: Hi all, I have recently learned about ViEmu (http://www.vimemu.c om) which, for Vi/Vim...
  • OysterEngineer: When I first learned of the Publish feature in MatLab, I thought it might be useful to help to...
  • Ken: Hi Herve, I’m not quite sure what you mean by “stand-alone&# 8221; mode? -Ken
  • Herve: I wonder when the publish fonction will be supported in standalone mode.
  • Mike: Ravi, What you described should work as far I understand it. Please follow up with technical support. With a...
  • Mike: @Daniel, Thanks for that note.

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