How can I export a figure to *.svg?
조회 수: 201 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2009년 6월 27일
댓글: Eric Sargent
2023년 12월 20일
I'd like to export a figure as *.svg. Thus I'm trying:
File -> Export Setup -> Export
and chooses type *.svg. But this does not work. I obtain the following error message:
ERROR: Error using ==> hgexport at 858
Error using ==> graphics\private\prepare at 307
Error using ==> <a href="error:D:\MATLAB\R2007a\toolbox\matlab\graphics\private\prepare.m,100,1">graphics\private\prepare at 100</a>
Error using ==> graphics\private\prepare at 41
The SVG device option is only supported for Simulink systems.
채택된 답변
MathWorks Support Team
2023년 4월 10일
편집: MathWorks Support Team
2023년 4월 13일
The ability to export a figure to SVG file is not supported in MATLAB 7.4 (R2007a). A possible workaround could be found on the File Exchange:
Note that MathWorks does not guarantee or warrant the use or content of submissions to the MATLAB Central File Exchange. Any questions, issues, or complaints should be directed to the contributing author.
댓글 수: 1
Eric Sargent
2023년 12월 20일
fig = gcf;
print(fig,'MyPlot.svg','-dsvg');
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!