MATLAB: How to open many matlab instances from matlab

MATLABmatlab function

hi there, I want to make a function that opens multiple matlab instances (from within matlab) and then starts running different functions on each instance… can somebody help me?

Best Answer

!matlab -r disp('hi') &
Where instead of disp('hi') you would put what function you would like. Keep in mind what directory you are using as you go about this. If your function is not in the starting directory, you will get an error as expected.