how to use export_fig to save an image without the margin

1 Ansicht (letzte 30 Tage)
Nour
Nour am 11 Mär. 2015
Kommentiert: Amin Abedini am 28 Nov. 2021
Hi People,
Please I want to use export_fig to save an image without the margin.
  1 Kommentar
Amin Abedini
Amin Abedini am 28 Nov. 2021
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by