Open an application from Matlab and send a txt input file automatically
Mostra commenti meno recenti
Hi everyone,
I need to run an application from matlab, in particular it is a finite element solver that works as a dos window where an input .txt file is needed. What I need to do is create a script that automatically opens the solver and sends the input file to its dos window.
Could anybody help me with that?
Thanks in advance, Stefano
Risposte (2)
dpb
il 27 Gen 2014
!your_executable_name <your_inputfile_name
May want to actually build a batch file you dispatch instead and let that file take care of mundane details of ensuring the DOS shell is operating in the correct directory and so on.
The secret is whether the app itself will run from command line with the input redirection -- you can try that by hand to make sure it was written to get an input filename from the command line.
If that doesn't work, then you'll have to use the batch file approach but build it to open the input as you do manually.
Stefano
il 27 Gen 2014
0 voti
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!