From: samah karim on 24 Mar 2010 05:05 I want to stop a running program but not exit MATLAB. I have doubly netsed loops and the break will only get me out of one of them. I want to get out of both. Please help.
From: David Young on 24 Mar 2010 05:40 One way: Set a flag in the inner loop just before the break. Test the flag in the outer loop and break from that as well if the flag is set. Alternatively: Use "return" in the inner loop instead of break.
|
Pages: 1 Prev: embedded Matlab in xPC Next: Compilation error with C++ mex file |