How to save big plot in .png

1 回表示 (過去 30 日間)
Sepp
Sepp 2014 年 6 月 12 日
コメント済み: Image Analyst 2014 年 6 月 13 日
Hi
I have a small problem with saving a plot. I have plotted some images with subplot method of Matlab in one plot. There are 25 images in a grid. If I'm saving it as .fig it works but the file is really big. But if I'm saving it as a .png the .png does not contain the images.
How can I get a .png with the images in it but compressed?
The code is as follows:
figure('Name','test','NumberTitle','off');
iteration = 1;
m = length(images);
for i = 1:length(images)
subplot(25, 25, i);
imshow(images{i});
title('test');
iteration = iteration + 1;
end
images is a cell array of images.

採用された回答

Image Analyst
Image Analyst 2014 年 6 月 12 日
  2 件のコメント
Sepp
Sepp 2014 年 6 月 13 日
Thank you so much, it worked. export_fig is such an aswesome tool.
Image Analyst
Image Analyst 2014 年 6 月 13 日
Yes, I'm not surprised it's always the number one downloaded File Exchange submission.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by