Running individual matlab scripts in parallel?
Ältere Kommentare anzeigen
Hello everyone,
I am fairly new to matlab parallel functions and I would like some advice and help.
I have two individual matlab scripts (do not need any communication between them) and I would like to run both at the same time (in parallel).
At the moment I tried to run these scripts by calling the commands below:
j = batch('SimplifiedNet1', 'Profile', 'local','matlabpool', 2);
k = batch('SimplifiedNet2', 'Profile', 'local','matlabpool', 2);
When I check in the job monitor I can see that the first job is running while the second is queued until the first finishes.
How can I run both of the scripts at the same time?
Thank you!
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 12 Dez. 2014
doc createJob
doc createTask
Create one job and then attach the two scripts to it as tasks (slightly lower-level api than batch but gives you this kind of control).
1 Kommentar
Andreas Procopiou
am 17 Dez. 2014
Kategorien
Mehr zu Job and Task Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!