My function file starts with `function drawline(point1,point2,color,img)`. At the end, I'm supposed to return an image. How do I code the return line?

I posted codes in another Stack Overflow question, *[Color issue in MATLAB](https://stackoverflow.com/questions/7632068/matlab-color-issue)*.