Running DOS command from Matlab
Mostra commenti meno recenti
I am running an execution file of a Fortran code in Matlab using DOS command.(I do not have access to the source code though).
The Fortran code is written in a way that print too many parameters on the screen window. Thus, when you run it on Matlab, all these parameters are printed on command window therefore it extremely reduces the SPEED.
Since I do not have any access to the source code, I cannot avoid the fortran code of doing that, but is there any way, not allowing the matlab to print these useless parameters on the command window.
Thanks
Risposta accettata
Più risposte (1)
sam Pournazeri
il 13 Set 2011
0 voti
1 Commento
Jason Ross
il 13 Set 2011
A theory -- there might be some difference in environment variables between the system command and your "bare" command prompt. Run
system('set')
in MATLAB and also run 'set' at the command prompt, and see if there is something different that might affect the performance of your code. You can try using setenv() to change the command environment before you call system().
Categorie
Scopri di più su Fortran with MATLAB in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!