I'm trying to use the LaTeX interpreter (for xlabel) in a function that is being called from a parfor loop (to create a figure and then save it as png/epsc using saveas).
However, when I do so, I get the following error:
Error using parallel_function (line 589)The session that parfor is using has shut down.The client lost connection to lab #. This might be due to network problems, or the interactive matlabpool job might have errored.
Is there a way to use the LaTeX interpreter inside a parfor loop?
Best Answer