Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

matlab image question

Status
Not open for further replies.

nacre

Materials
Feb 27, 2004
1
Hello,
I have a 1024 by 1024 matrix which i need to write to an image file.

if I use the image (A) command, the figure shows, but I need it to write it to a file instead of showing it.
If I use
imwrite(M1,'test.png','BitDepth',16);

i get a black picture, i think this is because M1 is a matrix and not an image.

How can I solve this?
thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor