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
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