title: Convert a matrix of type double to image in Matlab
body: <p>i have problem in converting a matrix of type double to image.iam using imwrite for this but each time, the error is too many input arguments. the matrix has values from 0 to 255 but the type is double. i used imread to open the image, then converted it to binary and then used the command double and tried to convert it back into image. i need the binary form in my fyp and then convert it back to image. how is it possible?
  if anyone has a solution, kindly help me out.
  thanks!</p>