while (criterion for loop)
errordlg('iteration cannot be converged', 'Error!', 'modal')
%In this example, if iteration numbers reach 200, return command terminates the loop to eliminate infinite loop. But there are other codes right after the loop which need to be executed. How can I continue to execute other codes outside the loop with using return command.