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)
where t
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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…