I have a MATLAB program I'm running in parallel. I understand that I can't use a worker process to plot to the screen. But, I'm curious, is it possible to use a worker process to plot directly to a file?
Log in to comment.
Direct link to this answer:
You can plot in parfor, it's just you won't see it, but the handle is still there. Then you can use saveas to save it to a file.
saveas(gcf,['temp' num2str(i) '.jpg']);
Direct link to this comment:
Thanks a lot, I'm surprised there is such a simple solution!
Log in to answer this question.
Opportunities for recent engineering grads.
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries