Hi all,
When I plot a figure and click on "Copy Figure", the image that gets pasted is no longer a vector graphic. In previous versions of MATLAB, copying a figure to the clipboard and pasting it into a Word or PowerPoint file would preserve the vector format. That no longer seems to be the case.
Does anyone know how to configure MATLAB to restore this behaviour?
Thank you,
Renan

댓글 수: 1

Adam Danz
Adam Danz 2025년 5월 30일
Check your copy preferences or copy options.
I don't have MATLAB R2025a open right now but these options should be available from the figure toolstrip or the preference window. From the copy options, check your clipboard format settings.

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

 채택된 답변

Noah Prisament
Noah Prisament 2025년 5월 30일

1 개 추천

See these settings for info on how to change that default behavior to use an SVG instead of a PNG: https://www.mathworks.com/help/matlab/creating_plots/copy-figure-to-clipboard-from-edit-menu.html.
Likewise, you can also use the "copygraphics" function: https://www.mathworks.com/help/matlab/ref/copygraphics.html.

댓글 수: 3

Oleg S
Oleg S 2025년 6월 19일
Hi Noah,
The settings you linked show a grayed-out "Content type" field that cannot be changed. It is set to "Image" for me, but even in the link's example it is grayed out.
Using copy figure in the figure window defaults to image. Using copy figure on individual axes and choosing vector works, but rather impractical for figures with subplots.
Using copygraphics works for individual axes, but not for a figure with several subplots - it does not copy anything at all.
Oleg Iupikov
Oleg Iupikov 2025년 6월 19일
Setting "Units" to "Points" in the same setting window enables changing "Content Type". To access Units you may need to temporally uncheck "Match on-screen size" checkbox. The reasons of doing so are unclear for me, but it worked :)
Robert
Robert 2025년 8월 15일
Thanks for posting, I had the same question, and this worked for me!

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

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

릴리스

R2025a

질문:

2025년 5월 30일

댓글:

2025년 8월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by