imwrite plots not saving

I don't seem to save with imwrite a plot. Is this possible at all?

回答(3 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-3-17
编辑:Azzi Abdelmalek 2013-3-17

1 个投票

If you want to save a plot use saveas
Youssef  Khmou
Youssef Khmou 2013-3-17
编辑:Youssef Khmou 2013-3-17
hi,
use the commande 'print'
example ,
figure, plot(randn(100,1));
print(figure(1),'C:\users\.......\your_image.jpg');

2 个评论

Thanks, why does imwrite not work?
imwrite works for images, if you want save an image , any function that start with 'im' is likely for images manpulations

请先登录,再进行评论。

Image Analyst
Image Analyst 2013-3-17

0 个投票

Please see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions. Basically, use just export_fig() like most everyone else does (it's the most downloaded File Exchange submission ever, and for good reason).

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

标签

提问:

2013-3-17

Community Treasure Hunt

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

Start Hunting!

Translated by