From: Ahsan Ahsan on
I want to execute two different functions at the same time. Any suggestions??
Thanx
Ahsan
From: Ahsan Ahsan on
Can I execute two statements or loops in the same code in parallel
From: Edric M Ellis on
"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
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.