Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Start Multiple Instances Of A Function From Matlab

0 views
Skip to first unread message

Joseph

unread,
Oct 3, 2008, 8:38:03 PM10/3/08
to
I want to start multiple instances of a function running from one matlab instance. Does any one know if there is a way to do this. For example:

If I have a function that takes 2 arguments I want to start 4 times on different threads as follows:
Start(fun,arg1,arg2a);
Start(fun,arg1,arg2b);
Start(fun,arg1,arg2c);
Start(fun,arg1,arg2d);

Then I would like to be notified when all of them have completed. Does anyone know how to do this without starting multiple instances of Matlab?

If you have to start multiple Matlab instances does anyone have an example of a good way to coordinate this?

Thanks,
Joe

Vincent Morio

unread,
Oct 4, 2008, 7:22:02 PM10/4/08
to
"Joseph " <jti...@email.unc.edu> wrote in message <gc6dta$3eh$1...@fred.mathworks.com>...

Hi,

I think you have to start multiple instances of Matlab to do that. Otherwise, try to find an appropriate function in the Matlab distributed computation toolbox, if exists.

Cheers;

V. Morio
PhD student in Automatic Control
IMS lab./University of Bordeaux, France


0 new messages