how to print figure in jpg without white margin

5 次查看(过去 30 天)
x = 0:pi/5:2*pi;
y = sin(x).*exp(-x);
figure('Visible', 'off', 'PaperUnits','centimeters', 'PaperPosition', [0 0 32 8])
plot(x,y,'--k','LineWidth',1)
xlabel('Acc /g')
ylabel('T /s')
ax = gca;
ax.FontSize = 16;
print('figure01','-djpeg', '-r0')
the script give me a figure like this
however, i don't want the white margins in left and right of the printed figures
what should i do?

采纳的回答

KSSV
KSSV 2020-9-16

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by