필터 지우기
필터 지우기

Cannot use any figure related commands in compiled matlab code with version 2019a on Ubuntu

조회 수: 2 (최근 30일)
I want to create plots and write them to a png file with a compiled matlab program (I managed this before with version 2012 without problems). For test purposes I compile a script (mcc -m) which only uses the command "clf". (Using other commands in the script, like print, read or calculations works fine) The error message I get is
"TestUndefined function or variable 'clf'"
If I try to open a figure first with "figure" I get
"Error using figure
This functionality is no longer supported under the -nojvm startup option. For more information, see "Changes to -nojvm Startup Option" in the MATLAB Release Notes. To view the release note in your system browser, run web('http://www.mathworks.com/help/matlab/release-notes.html#btsurqv-6', '-browser')."
After reading some help pages, which indicated it might be a java problem, I also checked for >>version -java and see "Java is not enabled", even though the MATLAB_JAVA variable is set to the correct path. I don't find a way to force jvm, I would appreciate any help on this. When running matlab interactively java is enabled and everything works fine - also the plotting.

채택된 답변

Sabine Eckhardt
Sabine Eckhardt 2020년 3월 5일
working after upgrade to 2019b
  댓글 수: 1
Yuval Vardi
Yuval Vardi 2022년 4월 6일
can you please describe what have you done in order to get it to work? It doesn't work for me in matlab 2019b.
I would like to do exactly as you - creating figure and writing it into png.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by