How can I test for a return in 2010a
Show older comments
Hello everyone,
I have a program that calls a function. I would like to put a test in this function that would call "return" is true. however, that function is called in a loop so I would like to test if the function was ended prematurely and call "break" on the loop.
something along the lines of that:
if return==true
break
else
...
Is there anyway to actually do that?
2 Comments
Marta Salas
on 28 Mar 2014
Edited: Marta Salas
on 28 Mar 2014
The function you call is a MATLAB function? is it a function you code? if the function end prematurely, is it due an error?
Jules
on 28 Mar 2014
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!