명령창에 특정 문구가 출력될 때, 명령창에 원하는 문자와 엔터를 입력하려면 어떻게 해야 하나요?

11 views (last 30 days)
juhyun Bak
juhyun Bak on 7 Oct 2020
현재 매트랩에서 exe 파일을 활용하여 CONTAM이라는 프로그램을 실행시켜서 최적화를 수행하고 있습니다.
최적화 수행중 명령창에 아래와 같은 문구가 출력됩니다.
Report node flow results? (y/n)
이는 CONTAM이라는 프로그램에서 출력하는 것으로 저는 y를 입력하고 엔터를 클릭해야지만 최적화가 한단계씩 수행됩니다.
어떻게 하면 명령창에 저 문구가 출력되었을 때, 원하는 문자와 엔터를 코드상에서 자동적으로 입력할 수 있을까요?

Answers (0)

Categories

Find more on 디버그 및 분석 in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!