Does anyone know how to open a Microsoft cmd.exe window in MATLAB?

조회 수: 33 (최근 30일)
Savannah Morrissey Martin
Savannah Morrissey Martin 2018년 7월 23일
편집: Walter Roberson 2020년 8월 14일
I am trying to execute files from the cmd.exe command window in MATLAB but I am unable to, hoping someone can help.

답변 (2개)

Muhammad Zayed
Muhammad Zayed 2020년 8월 14일
편집: Muhammad Zayed 2020년 8월 14일
you can use:
!cmd &
it works for me to open the command window from Matlab
Moreover, if you want to excute something in the cmd, you can do it as follows (in my case I want to run an excutable called "Opensees" then type the file name)
!Opensees fileName.tcl &
All the above commands will open and run the excutable in an external commond prompt window. If you wish to run it inside Matalb command window, just remove the "&" symbol at the end.
I hope this helps.
P.S. I am using MATLAB R2018a - academic version

Steven Lord
Steven Lord 2018년 7월 23일
See the system, dos, or unix functions or the bang operator !.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by