Results 1 to 4 of 4

Math Help - is there a way to kill a script in matlab?

  1. #1
    Member
    Joined
    Dec 2008
    From
    Auckland, New Zealand
    Posts
    189

    is there a way to kill a script in matlab?

    Hi, just wondering if there is a way to kill a script while it is running in Matlab. Sometimes I inadvertently create an infinite loop and the only way I know how to deal with this situation is close the whole program...so is there a keyboard shortcut or something similar?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor undefined's Avatar
    Joined
    Mar 2010
    From
    Chicago
    Posts
    2,340
    Awards
    1
    Quote Originally Posted by nzmathman View Post
    Hi, just wondering if there is a way to kill a script while it is running in Matlab. Sometimes I inadvertently create an infinite loop and the only way I know how to deal with this situation is close the whole program...so is there a keyboard shortcut or something similar?
    The standard Ctrl-C should work, although apparently with some issues on Windows

    Why am I unable to consistently use Ctrl+C to break out of an operation in MATLAB 6.0 (R12) and later versions? - 1-188VX
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Dec 2008
    From
    Auckland, New Zealand
    Posts
    189
    Thanks for that. I am using Windows 7 and the Ctrl-C works just as it should!
    Follow Math Help Forum on Facebook and Google+

  4. #4
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    4
    Awards
    2
    In general, Ctrl-C or Ctrl-Z is kind of a convention in various programming languages for stopping execution (although Mathematica uses Alt-.).
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Trying to script the General Beta 2 CDF in MATLAB
    Posted in the Math Software Forum
    Replies: 2
    Last Post: July 18th 2011, 11:55 AM
  2. Help with Matlab Script
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 25th 2010, 08:25 PM
  3. Replies: 1
    Last Post: March 5th 2010, 03:11 AM
  4. Matlab help can't write script
    Posted in the Math Software Forum
    Replies: 2
    Last Post: January 28th 2010, 05:00 AM
  5. MATLAB and using the script for RK4 method
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 8th 2009, 03:33 AM

Search Tags


/mathhelpforum @mathhelpforum