Command window execution by script editor automatically in a loop
Good morning,
I want to execute system commands through matlab and to run system command in a loop. System command is working fine for one iteration. Actually the problem is i have to run system command in a loop where system command runs multiple times until meets user criterio and then stop. So my question is when system command executed in second iteration in a loop user will have to give certain input to continue the process like below for loop to continue until it stops (not meeting criterio)
THese are the steps happen in command window after second iteration starts through system command in matlab.
Enter "exit" to end with restart save, "quit" to end without restart save. quit then press enter
Continue with interactive input options for control? <y or n> : y then press enter
Specify command (INTEractive, INCLude, STOP, etc.) STOP then press enter
So my question is . Is there a way to execute this commands automatically in command window without user interventi?Good morning,
I want to execute system commands through matlab and to run system command in a loop. System command is working fine for one iteration. Actually the problem is i have to run system command in a loop where system command runs multiple times until meets user criterio and then stop. So my question is when system command executed in second iteration in a loop user will have to give certain input to continue the process like below for loop to continue until it stops (not meeting criterio)
THese are the steps happen in command window after second iteration starts through system command in matlab.
Enter "exit" to end with restart save, "quit" to end without restart save. quit then press enter
Continue with interactive input options for control? <y or n> : y then press enter
Specify command (INTEractive, INCLude, STOP, etc.) STOP then press enter
So my question is . Is there a way to execute this commands automatically in command window without user interventi? Good morning,
I want to execute system commands through matlab and to run system command in a loop. System command is working fine for one iteration. Actually the problem is i have to run system command in a loop where system command runs multiple times until meets user criterio and then stop. So my question is when system command executed in second iteration in a loop user will have to give certain input to continue the process like below for loop to continue until it stops (not meeting criterio)
THese are the steps happen in command window after second iteration starts through system command in matlab.
Enter "exit" to end with restart save, "quit" to end without restart save. quit then press enter
Continue with interactive input options for control? <y or n> : y then press enter
Specify command (INTEractive, INCLude, STOP, etc.) STOP then press enter
So my question is . Is there a way to execute this commands automatically in command window without user interventi? system command, command window MATLAB Answers — New Questions