Hello everybody,
I'm trying to plot a couple of figures(pie charts, histograms, graphs...) and I was wondering if it is possible to plot those figures with a 300 or 600 dpi. I've read some documentation that shows you how to save it with better resolution but I couldn't find any kind of information regarding to actual plotting in higher deffinition.
Is it even possible to achieve this? If so, could someone please show me how or at least share some useful useful documentation?
Thank's for the help.
Santos

 Respuesta aceptada

darova
darova el 6 de Abr. de 2021

1 voto

Use print
x = 0:10;
y = sin(x);
plot(x,y);
print('test','-dpng','-r300')

2 comentarios

Santos García Rosado
Santos García Rosado el 7 de Abr. de 2021
Thank you Darova! Now is working perfectly!
darova
darova el 7 de Abr. de 2021
my pleasure

Iniciar sesión para comentar.

Más respuestas (2)

Divya Gaddipati
Divya Gaddipati el 5 de Abr. de 2021

0 votos

1 comentario

Santos García Rosado
Santos García Rosado el 6 de Abr. de 2021
Thank's for the feed back Divya. I checked the code of the accepted answer and it doesn't get the expected output. Thank's anyways. I'll keep checking if someone comes up with a solution.

Iniciar sesión para comentar.

Lazaros Moysis
Lazaros Moysis el 10 de Mzo. de 2025
Editada: Lazaros Moysis el 10 de Mzo. de 2025

0 votos

See this vid that explains how to set the dpi in an image before saving it https://www.youtube.com/watch?v=l_RlatXReks

Categorías

Productos

Versión

R2021a

Preguntada:

el 29 de Mzo. de 2021

Editada:

el 10 de Mzo. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by