how to use parallel computing

조회 수: 10 (최근 30일)
vijay
vijay 2014년 1월 17일
답변: Walter Roberson 2014년 1월 17일
how to use parallel computing for the given code
syms M;
L = 5.0;A = 1.6;P = 0.0; w = 0.4195; R = 25;
PBAR = P/(pi*w*R);
e1 = A^3 - L*A^2.*(sqrt(M.^2-1) + M.^2.*acos(1./M)) - PBAR;
e2 = L*A^2/2*(sqrt(M^2-1) + (M^2-2)*acos(1/M)) + 4*L^2*A/3*(sqrt(M^2-1)*acos(1/M)-M+1)-1;
solution{1}=feval(symengine, 'numeric::fsolve',e2-e1,'M')
i tried with
ms.UseParallel = 'always'
but didnt work (out of 4 cores, 2 cores are only loaded & 2 cores are free)

답변 (1개)

Walter Roberson
Walter Roberson 2014년 1월 17일
MuPad does not use parallel computing the same way (if at all)
F = matlabFunction(e2 - e1);
fzero(F, rand)
The rand is just to supply a starting point.

카테고리

Help CenterFile Exchange에서 Properties and Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by