MATLAB 2025a plot: Copy Figure settings

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 comentario

Adam Danz
Adam Danz el 30 de Mayo de 2025
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.

Iniciar sesión para comentar.

 Respuesta aceptada

Noah Prisament
Noah Prisament el 30 de Mayo de 2025

1 voto

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 comentarios

Oleg S
Oleg S el 19 de Jun. de 2025
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 el 19 de Jun. de 2025
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 el 15 de Ag. de 2025
Thanks for posting, I had the same question, and this worked for me!

Iniciar sesión para comentar.

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Productos

Versión

R2025a

Etiquetas

Preguntada:

el 30 de Mayo de 2025

Comentada:

el 15 de Ag. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by