title: Draw line using two points over whole image in Matlab
body: <p>I need Matlab code to draw a line on an image using two points not just between those points put on the whole image and then check if the pixels are on right of the image then make its value 0 = black else stay as is
  I am not proffesional at matlab and need this for a project.
  <img src="https://i.stack.imgur.com/FGQ2t.jpg" alt="enter image description here"></p>