saving figures using saveas

2 ビュー (過去 30 日間)
Mason
Mason 2012 年 6 月 11 日
Hello,
When I have a matlab figure open and I use the dropdown menu to save the figure as a JPEG, everything works fine and the whole image is saved correctly. My problem is that I have to save many images so I save it within my code using saveas(gca,'someimage.jpg'). When using saveas, most of the JPEG file is cut off at the top. Is there something i can do to get the whole image?
Thanks, Mason
  1 件のコメント
Mason
Mason 2012 年 6 月 11 日
I appears that its saving the unfilled page view? Is there a way to put in a fill page option?

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

回答 (1 件)

Jessica Lam
Jessica Lam 2012 年 6 月 11 日
will you consider to use one command print ?
For example , plot(1:10); plot_filename='testing.jpg'; print('-djpeg', plot_filename, '-r100'); http://www.mathworks.com.au/help/techdoc/ref/print.html
  1 件のコメント
Mason
Mason 2012 年 6 月 11 日
Same thing happens, only about half of the image is saved.

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

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by