MATLAB: How to terminate UI designed in App Designer

app designerui

I'm working on an app using App Designer in R2016b. At some point I would like to ask the user for approval using a button group. If the answer is negative I would like to terminate the application and not continue to he next step. How do I terminate the app? a simple 'return' is not working.

Best Answer

Hi Rachel,
the easiest way to do this is to call
closereq