Running DOS command from Matlab using system()
8 ビュー (過去 30 日間)
古いコメントを表示
I am running an execution file of a Fortran code in Matlab using system(). running the dos command in Matlab takes approximately twice longer than when you run it from the command prompt window (i.e. from DOS).
Is there any way that we can speed up the process running this file from Matlab.
Thanks
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 9 月 13 日
Odd...
Does it happen to produce a lot of output to the screen? If so then perhaps system() is getting bogged down in collecting that output, as the second output of system() can be the output of the executable. If that is what is happening, then if you do not need the output, redirect it to the null device in the system command. If I recall, in MS Windows, that would look like
system('ExecutableName > NUL:')
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!