Can 'export Figure' be written in command without clicking figure settings by hands ?

1 visualización (últimos 30 días)
I'm saving figures by using 'File -> export setup'. Here I can set the figure 'height and width', and then 'dpi'.
I have lots of figures to save.
Is there any command can do the process to set the figure 'height and width', and then 'dpi' and save the figure ?

Respuesta aceptada

wenhao yang
wenhao yang el 4 de Mzo. de 2021
I found it.
set(gcf,'unit','centimeters','position',[10 10 25 20]);
print(gcf,'-djpeg','-r600',PATH);
25: height,cm
20: width.cm
-r600: 600 dpi
Thanks for my work. LOL~!

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by