Running multiple functions simultaneously

Dear all, I calculate a Jacobean matrix numerically by modifying each component of a vector of parameters "V" and see the impact of this change on the solution of my problem. I can do this operation by making the modification component by component of the vector of parameter "V" which has a dimension of (14*1). Problem : I would like to make this calculation, but a simultaneous (i.e. in parallel procedure). Create multiple problems (length(V) = 14), where each contains a variation of a component of my vector B--->This task is easily encoded. The problem is how, I ask Matlab to start for solving these 10 created problems simultaneously. Thank you in advance for each answer.

답변 (2개)

Sean de Wolski
Sean de Wolski 2014년 12월 19일

0 개 추천

Do you have the Parallel Computing Toolbox?
If so, this is easily doable with parfor, parfeval or batch.
If not, contact your friendly MathWorks' account manager for a trial.
Sara
Sara 2015년 1월 21일

0 개 추천

Dear Sean de Wolski, Firstly, thank-you for your answer, but I have a Matlab 2011b (i.e. the all commands "parfor, parfeval or batch" don't exist. I would only run several matlab functions using a computer of 12 cores. I would to start the run of each function in a specific core. Thank-you in advance for any advice...

댓글 수: 1

Sean de Wolski
Sean de Wolski 2015년 1월 21일
With the parallel computing toolbox, batch and parfor exist. parfeval was added later. You do not have the toolbox if these functions aren't present.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

질문:

2014년 12월 19일

댓글:

2015년 1월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by