How to close system command prompt opened by MATLAB !command?
조회 수: 82(최근 30일)
I've seen similar questions but not ones that involve opening the command window/terminal via "!". I'm using a MATLAB-to-Python socket connection and I want to close the command window/terminal at the end.
% Start the echo server in python.
!python echo_server.py &
% Do some stuff with my sockets.
% Close the connection.
%%% Close the terminal here?
The opened command line/terminal says at the top "C:\WINDOWS\SYSTEM32\cmd.exe" following the closing of the socket.