How to exit a script but not from MATLAB?

28 views (last 30 days)
Mr M.
Mr M. on 9 Mar 2018
Answered: Adam on 9 Mar 2018
If I am in a nested loop, how to break everything and quit from the script? I've tried exit and quit, but in these cases MATLAB terminated also, not just the script

Answers (1)

Adam
Adam on 9 Mar 2018
doc return
should do the job.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!