Puzzling warning when changing a linear loop to a parfor loop. Need help.

조회 수: 2 (최근 30일)
Jakob Sievers
Jakob Sievers 2015년 5월 6일
댓글: Edric Ellis 2015년 5월 7일
I am trying to change a linear loop of image exporting to a parallel loop. In linear mode the export_fig (the function I am using, available here in the file exchange) works perfectly. In parallel mode, however, I am getting the following warning, and then the exported figure looks horrible:
Warning: MATLAB cannot use OpenGL for printing when started with the '-nodisplay' option.
> In graphics\private\inputcheck at 143
In print at 156
In print2array at 140
In export_fig at 334
In parallel_function>make_general_channel/channel_general at 914
In remoteParallelFunction at 38
I should say, ofcourse, that the figures are loaded as invisible figures like this:
openfig(fig(i),'new','invisible');
could that be the problem or?
Thanks in advance
Jakob
  댓글 수: 2
Jakob Sievers
Jakob Sievers 2015년 5월 7일
Ah, just stumbled across a comprehensive answer to this type of question: LINK
Edric Ellis
Edric Ellis 2015년 5월 7일
Which release of MATLAB are you using?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by