I know that the title is so confusing and I should explain more:
First: I have a Fortran console application that someone else has developed. It has some inputs and outputs as text file. When the application runs it prompts for the name of input text file.
Second: I need to use the application in a "FOR loop". I am going to develop second application in Matlab so it is necessary that Matlab call first application. I do it by line below in the Matlab script:
!C:\ ... ADDRESS ...\app.exe
Matlab runs the console application and the command window shows this message:
Enter name of input parameter file:
The problem is that Matlab does not go to the next line in the script until a value entered in the command window.
Because I want the program to run more than once, I need the name entered automatically.