フィルターのクリア

how to print figure in jpg without white margin

4 ビュー (過去 30 日間)
jason lee
jason lee 2020 年 9 月 16 日
コメント済み: jason lee 2020 年 9 月 16 日
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 日
  1 件のコメント
jason lee
jason lee 2020 年 9 月 16 日
thank you bro !
it is really a very nice tigure export tool.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by