Save image without the white margin
9 views (last 30 days)
Show older comments
Hi, Please I want to use the HGEXPORT function as shown:
hgexport(gcf, 'figure1.jpg', ...
hgexport('factorystyle'), 'Format', 'jpeg');
hgexport(gcf, 'L2w.jpg', hgexport('factorystyle'), 'Format', 'jpeg');
But, I dont need the white margin around the image.
0 Comments
Answers (1)
Chad Greene
on 21 Jan 2015
There are many solutions. The best standby solution is to (almost) always use export_fig. It crops the white space by default unless you specify the -nocrop option.
See Also
Categories
Find more on Debugging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!