Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Feb 27, 2004
Messages
1
Location
BE
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

Back
Top