title: How to find all the grid points between two grid point in Matlab
body: <p>I have profile (function) in MatLab and now I want to find all the grid points between a point on the profile and on a source line (another line on top of my profile), so that I can check the value of my function at those grid points.</p>
  
  <p>Basically I need to find the visibility angle (the angle which is visible from a point on my profile of the source).</p>
  
  <p>Please help !</p>
  
  <p>Thanks in advance</p>
  
  <p>What I want to do is that given two grid points which can be joined by a straight line, I want to know the index of the grid points lying on that line. Somehow I need to know through which all grid points, the line passes throug</p>