You need to run three function on two matlab instances simultaneously?
If yes, so open two separate instances of Matlab and run your three functions in each separate instance.
Fot details see: Matlab help
see Input Arguments paragraph ... for more info.