Info

This question is closed. Reopen it to edit or answer.

image write

1 view (last 30 days)
Sivakumaran Chandrasekaran
Closed: MATLAB Answer Bot on 20 Aug 2021
how to write(save) the output image

Answers (3)

Thomas
Thomas on 30 May 2012
If you want to save your plots you could use the print command
doc print
Eg.
h=figure
plot(1:4)
print(h,'-dbmp','-noui','myFig') % this saves myFig.bmp in current directory
To save an image you can use imwrite
doc imwrite
  4 Comments
Thomas
Thomas on 30 May 2012
this page has some tricks you might want to try..
http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/826736766cc3f3b3
Sivakumaran Chandrasekaran
Thanks.., The link helped me to find the right solution

Image Analyst
Image Analyst on 30 May 2012
You need to describe this better. I've never heard of imsave(). Of course I've heard of imwrite() and it works fine - you just need to supply it the proper numerical array and filename. Why are you not able to supply those, or else what is going wrong when you do?

Walter Roberson
Walter Roberson on 30 May 2012

Community Treasure Hunt

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

Start Hunting!