using matlab to send strings to the STDIN of another console application
이전 댓글 표시
I want to start a command line application using matlab. The application requires frequent user input (textual input via STDIN). After each input it writes output to file. If I start the application from within matlab (using the system command) I can use the matlab console to write input to the application, but since I would like to use the application in automatic testing, I would like to write to the input stream of my application automatically. I know I can start the application and use a file as input via the "<" operator in the command string, but my input strings depend on analysis of the last output. In other words, I do not know the next input string before analyzing the last output.
(I am using Matlab R2012b on a Windows 7 computer.)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Files and Folders에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!