how to use export_fig to save an image without the margin
1 次查看(过去 30 天)
显示 更早的评论
Hi People,
Please I want to use export_fig to save an image without the margin.
1 个评论
Amin Abedini
2021-11-28
X = 1:1:10;
Y = 1:1:10;
F = figure
plot(X,Y);
set(gcf,'color','w');
%%%%%%%%%%%%%%%%%%%
FigName = 'FigWithNoBorder';
export_fig FigName.png '-r300' % Saves as png with 300 resolution.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!