From: Ahsan Ahsan on 8 Sep 2009 02:41 I want to execute two different functions at the same time. Any suggestions?? Thanx Ahsan
From: Ahsan Ahsan on 8 Sep 2009 04:35 Can I execute two statements or loops in the same code in parallel
From: Edric M Ellis on 8 Sep 2009 04:56 "Ahsan Ahsan" <mmajb1(a)yahoo.com> writes: > I want to execute two different functions at the same time. Any suggestions?? You could use the Parallel Computing Toolbox to do that, using either an SPMD block or PARFOR. More info about the toolbox: http://www.mathworks.com/products/parallel-computing/ Other than that, as per the other suggestions, you could simply run additional MATLAB processes manually to run things simultaneously. Cheers, Edric.
From: Andy on 8 Sep 2009 08:52 On Sep 8, 12:41 am, "Ahsan Ahsan" <mma...(a)yahoo.com> wrote: > I want to execute two different functions at the same time. Any suggestions?? > Thanx > Ahsan Unless you have two processors, you cannot run two functions simultaneously. But, you can re-write your code so that your two functions are written as one function, and then arrange the lines of code so that the processor alternates execution between the two. That also wouldn't be simultaneous, but it is a close as you will get without a second processor.
|
Pages: 1 Prev: lasso (L1 constrained fitting) for Matlab Next: getting CIE XYZ values from rgb image |