How to go to an initial step in a running function?
3 views (last 30 days)
Show older comments
Antonio Trujillo-Ortiz on 7 Apr 2014
Commented: dpb on 7 Apr 2014
I need some hint to this. Suppose you are running a Matlab function and in some forward point, partial results must to be checking. If they pass a constraint can proceed, otherwise it is necessary going to some initial step.
Any help are welcome. Thx.
dpb on 7 Apr 2014
You'll have to enclose the necessary code section in a loop of some sort such that it repeats when needed.
as possible help in a for or while loop; another alternative might be to enclose the code in a catch...try block
More specifics would likely help to refine a response...
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!