Run a script that uses multiple MATLAB sessions

后端 未结 2 968
孤街浪徒
孤街浪徒 2020-11-29 09:38

How to call a function with simple inputs in several MATLAB sessions automatically?

The manual way to do it would be:

  • Open three sessions
  • Call
2条回答
  •  时光取名叫无心
    2020-11-29 10:24

    You could try Multicore, which uses several instances of Matlab to do what parfor does by passing information via a common directory. If you can rewrite your code loop to call a function that returns values then Multicore might do what you are looking for.

    http://www.mathworks.com/matlabcentral/fileexchange/13775-multicore-parallel-processing-on-multiple-cores

提交回复
热议问题