using matlab to send strings to the STDIN of another console application
Show older comments
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.)
Accepted Answer
More Answers (0)
Categories
Find more on Files and Folders 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!