-1

I want to know if there is any way to close the editor window (like function, script)using Matlab command.

Umerraja
  • 1
  • 1
  • This question is not detailed enough. Add more context about what you want to achieve and your environment. Please read the SO guidelines before posting. – sparkitny Apr 21 '18 at 12:35

1 Answers1

0

Step 1. Get the editor service

editor  = com.mathworks.mlservices.MLEditorServices; % main editor service

Step 2. Choose either of following depending on your requirement

editor.getEditorApplication.close; % Close editor windows (with prompt to save)
editor.getEditorApplication.closeNoPrompt; % Close editor windows
Hasala
  • 126
  • 10