Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: parallel program in matlab for 4 loop
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
naser

Posts: 61
Registered: 3/20/09
parallel program in matlab for 4 loop
Posted: Feb 9, 2013 4:22 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.