I want to write a function that will continously keep adding adding 1 to a coordinate.
Say we have a matrix point [X,Y]. I want to keep adding 1 to the Y component of the point until a set ending and have all of these set as different points.
For example, say we have [X,Y] and we want to stop at [X,Y+3]. I want to have a set of points that at the end looks like:
I apologize if this isnt clear. I have no experience with loop functions and also do not know how to terminate them at a given point.