naser
Posts:
61
Registered:
3/20/09


parallel program in matlab for 4 loop
Posted:
Feb 9, 2013 4:22 AM


I want to solve 4 nonlinear equation using Matlab. I want to find many roots of this 4 nonlinear equation.
I have no idea about initial condition so I use 4 for initial condition. my program is as follow:
f1=nonlinear equation1(include variable x(1),x(2),x(3),x(4));
f2=nonlinear equation2(include variable x(1),x(2),x(3),x(4));
f3=nonlinear equation3(include variable x(1),x(2),x(3),x(4));
f4=nonlinear equation4(include variable x(1),x(2),x(3),x(4)); mufunc is include f1,f2,f3,f4, for x1 =1: 200
for x2=1:200
for x3 =1:200
for x4 1:200 x0=[x1,x2,x3,x4]; answer:=fsolve(@myfunc(x),x0};
end end end end
But this program takes time. Because I use 4 for that it run 200*200*200*200 time. Would you please tell me how can I decrease time process of my program? How can I write this program in parallel program in maple? Regards

