Wait for all graphical figures to close before continuing
myDeployedModule.wait_for_figures_to_close()
enables
the deployed application to process graphics events. The purpose of myDeployedModule.wait_for_figures_to_close()
is
to block execution of a calling program as long as figures created
in deployed MATLAB® code are displayed.
This function can only be called after initialize()
has
been called and before terminate()
has
been called. If this function is not called, any figure windows initially
displayed by the application briefly appear, and then the application
exits.