Filter löschen
Filter löschen

Running a matlab file multiple times on the same computer

1 Ansicht (letzte 30 Tage)
Kostas Housiadas
Kostas Housiadas am 18 Apr. 2019
Kommentiert: Walter Roberson am 20 Apr. 2019
Can I run the same version of my matlab code, simultaneously, on the same computer (with different input data and input/output folders)?
My computer has 4 cores and I want to take advantage of this.
  2 Kommentare
Kostas Housiadas
Kostas Housiadas am 20 Apr. 2019
One answer is that you make multiple copies of the same code and run each one in batch mode.
Walter Roberson
Walter Roberson am 20 Apr. 2019
No need to use multiple copies of the code if you redirect stdin and stdout. input() the name of the input data file and output data file.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Bob Thompson
Bob Thompson am 18 Apr. 2019
Short answer is yes, it is possible, but unfortunately I am not exactly sure how to do it. If I remember the method I saw it was not done in Matlab, but rather with a cmd window executable.
If you have the parallel computing box it is possible to conduct this within Matlab itself, using parpool.
This might be helpful for running externally.

Kategorien

Mehr zu Parallel Computing Fundamentals finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by