exportgraphics failed when exporting PDF
이전 댓글 표시
I have tried to use the function exportgraphics with a figure to be exported in a PDF file in Matlab 2024b.
The function is returning several Java errors, although it was working fine on 2021a.
Is there a patch to solve this problem ? Thank you
PS : I have used the following example
plot([0 0.3 0.1 0.6 0.4 1])
ax = gca;
exportgraphics(ax,'myplots.pdf')
댓글 수: 4
Walter Roberson
2025년 3월 11일
Are you using linux?
JEAN BAPTISTE
2025년 3월 11일
이동: Walter Roberson
2025년 3월 11일
Adam Danz
2025년 3월 11일
Thanks for the reproduction code. I ran it in R2024b update 2 on a windows 11 machine but there were no errors and no unexpected behavior. I also tested it in the R2024b beta but still no problems.
If the problem appears again after a MATLAB restart, contact tech support and include a copy of the error message and stack to get more targetted help.
JEAN BAPTISTE
2025년 3월 12일
이동: Voss
2025년 3월 12일
답변 (1개)
NVSL
2025년 4월 22일
0 개 추천
I understand you are encountering error when trying to use “exportgraphics”.
There is a workaround to download a plot using GUI. The below attached link explains the workflow.
Hope this helps!
카테고리
도움말 센터 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!