MATLAB: How to run 2 script .m at the same time in matlab

MATLABmatlab guimultiplescriptthreads

I want to run to execute 2 matlab script multiObject1.m and multiObject.m at the same time

Best Answer

Well, if you really need to do that (the cases are fewer than one might expect) then you will need to use the Parallel Processing Toolbox, and use either parfor or spmd. If the two will need to communicate with each other than spmd would be recommended.
However, when people say they need to run two scripts at the same time, they often mean that one script has to be able to gain control temporarily, do a bit of work, and then allow the other script to continue. It is not uncommon to be able to program that with callbacks of various kinds of events without needing the Parallel Processing Toolbox.
Related Question