필터 지우기
필터 지우기

Using CLI programs in Matlab

조회 수: 2 (최근 30일)
Daniel
Daniel 2021년 5월 10일
답변: DGM 2021년 5월 10일
I have a program that can be called using the command line. If I call said program, it enters and I can type commands and get return values. I want to call this program from Matlab. However, system() never returns since the cli program blocks the command line. Is there a way to pass arguments to such a program?

답변 (1개)

DGM
DGM 2021년 5월 10일
If this were *nix, you may be able to write an expect script to handle getting into and out of the other CLI program.
man expect
I don't know how this would be done in Windows. I don't know of a pure Matlab way to do this; maybe there is, but nothing comes to mind.

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by