https://jp.mathworks.com/help/simulink/ug/create-load-open-save-and-close-models-programmatically.html
Create, Load, Open, Save, and Close Models Programmatically - MATLAB & Simulink
Run model file operations.
save and closecreateloadopenmodels
https://se.mathworks.com/matlabcentral/answers/1998048-save-and-close-incrementing-open-figures
Save and close incrementing open figures - MATLAB Answers - MATLAB Central
Save and close incrementing open figures. Learn more about figure MATLAB
save and closeopenfiguresmatlabanswers