How to call a function with simple inputs in several MATLAB sessions automatically?
The manual way to do it would be:
- Open three sessions
- Call
magic(t)
wheret
is 1, 2 or 3 respectively
So, my question is: How can I do this all programatically?
In case it is relevant, I do not want to use the parallel processing toolbox.
Note that I don't think a parfor
loop can do what I want. First of all that would require the parallel processing toolbox, and secondly I want to be able to debug as soon as one of these operations fails, without bothering the other sessions.