Calling python functions from MATLAB workers
问题 I'm trying to run a MATLAB script using parfor which runs a simulink model in parallel by sim function, and this simulink model contains a MATLAB Function Block. The function defined in this block calls a python function using "py." mechanism. Unfortunately, the run sometimes seems stuck in the middle, when I fed a large number of simulations. The debugging output stops to show up. I suspect a deadlock somewhere. So, my questions are Can we run a simulink model which contains python functions