Alternative to system function
6 views (last 30 days)
Show older comments
I am trying to run system function for hundreds of iterations. What I am doing is running a Fortran based .exe file with an input inside my code. Each run for the system function within an iteration takes around 10 seconds to operate - meaning that the entire code is running for hours. I tried the jsystem function but its performance is more or less the same. Is there a way to decrease the processing time?
Here is the line I am using in my code:
system('exsim_dmb.exe < exsim_dmb.params');
Thanks!
0 Comments
Answers (1)
Mario Malic
on 4 Mar 2021
Hello,
you must ensure that each of your workers gets their parameters correctly and that .exe program utilise 1 core or more if you can specify.
parfor
% code
system('exsim_dmb.exe < exsim_dmb.params');
end
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!