I am debugging a program in MATLAB R2016a and would like to return from a subfunction without ending the function. For example, you can write in code:
if(conditionMet)
return;
end
If the condition is met, this will cause the function to end earlier and continue in the callerβs code. Although I am debugging, I would like to make the function end earlier, as if I were running into a command return
. When I just type return
in debug mode, nothing happens. Is there a way to get a function to end earlier and continue to work?
source
share