| MATLAB Central > MATLAB Newsreader > how to stop execution |
|
|
|
This might seem like a dumb question, but how do you stop code execution? I dont mean 'return', or 'dbstop', or 'error'. I just want to stop the code immediately, with no fanfare and just return to the command line. Strangley enough, i can't seem to find a command that does this! "Return" doesn't necessarily work if the current function is not the main function. "dbstop" puts it in debug mode. "quit" quits matlab. |
|
Todd Welti wrote: |
|
ctrl+c |
|
"Matt Fig" <spamanon@yahoo.com> wrote in message <gp9cig$lul$1@fred.mathworks.com>... |
|
Walter Roberson <roberson@hushmail.com> wrote in message <XgWtl.34251$l71.6225@newsfe23.iad>... |
|
"Todd Welti" <twelti@harman.com> wrote in message <gp9ir2$kcf$1@fred.mathworks.com>... |
|
Here's what I use to do that (a little roundabout because, ridiculously, it requires that the user confirm that you'd like to quit) |
|
"Peter O'Connor" <peter.oconnor@mail.mcgill.ca> wrote in message <hp045r$h0$1@fred.mathworks.com>... |
|
Peter O'Connor wrote: |
|
"Todd Welti" <twelti@harman.com> wrote in message <gp98u4$g9h$1@fred.mathworks.com>... |
|
"Todd Welti" <twelti@harman.com> wrote in message <gp98u4$g9h$1@fred.mathworks.com>... |
|
"Radek " <dzidmail@gmail.com> wrote in message <jg1q97$gv7$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| break | Panagiotis | 30 Jan, 2012 11:33:26 |
| break | Radek | 28 Jan, 2012 16:43:50 |
| abort execution | Mazvydas Tadaravicius | 26 Jan, 2011 19:27:58 |
| execution | Todd Welti | 31 Mar, 2010 15:04:12 |
| stop | Todd Welti | 31 Mar, 2010 15:04:12 |
| code | Todd Welti | 31 Mar, 2010 15:04:11 |
Contact us at files@mathworks.com
