How to close system command prompt opened by MATLAB !command?
이전 댓글 표시
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.
fclose(tcp);
%%% Close the terminal here?
The opened command line/terminal says at the top "C:\WINDOWS\SYSTEM32\cmd.exe" following the closing of the socket.
댓글 수: 3
Walter Roberson
2019년 7월 10일
Taskkill
Dominik Mattioli
2019년 7월 10일
편집: Dominik Mattioli
2019년 7월 10일
Walter Roberson
2019년 7월 10일
Taskkill /IM cmd.exe
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!