MATLAB: How to run two Matlab programs simultaneously

running two programs

The arguments are passed from program1 is to be considered as input for program2. program2 have to work with these inputs and it iteratively give the results. Now each and every iteration that results have to be used as input to program1.Both have to made simultaneously.Is it possible to make this?kindly give answers.

Best Answer

You can use the parallel computing toolbox with a pool of size 2. use spmd and test labIndex to determine which of the two programs you need to execute. The two parts should use labSend and labReceive to communicate.
Related Question