Saving images from figure window in Matlab.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Naseeb Gill
el 27 de Jul. de 2017
Comentada: Naseeb Gill
el 28 de Jul. de 2017
I'm saving images 500 dpi, using rendering in export setup from figure window in Matlab. But there is little change I have to make. I get image like below: I mean there is lot of white space at sides which I want to eliminate. White portion is marked with black sketch in image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166381/image.png)
I want to make my image look like this: Whitout any white portion at sides.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166382/image.png)
How to do this?
Thanks.
0 comentarios
Respuesta aceptada
Chad Greene
el 27 de Jul. de 2017
export_fig myfig.png -r500
if you want 500 dpi. If you want a tiny bit of white space around the image, say, 1% of the figure width, do
export_fig myfig.png -r500 -p0.01
2 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!