Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: save a matrix as a figure preserving its type
Replies: 2   Last Post: Jul 3, 2012 6:15 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Javier

Posts: 59
Registered: 4/26/11
save a matrix as a figure preserving its type
Posted: Jul 3, 2012 5:42 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi, I have a matrix in double format that contains an image and I want to save it as an image. The problem is that when I use the function imwrite(A,'OUTPUT','bmp') the resulting image is white with black points, not my image.
I have also tried with 'export_fig('-bmp','-native') but when I read it, the matrix is uint8.

How could I save a matrix as a figure preserving its type?

Thank you very much



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.