Skip to content

pts2line

  PTS2LINE - Create a 2D line from 2 points

  [M,B] = PTS2LINE(X1Y1, X2Y2)

  Returns slope (M) and offset (B) of a line through 2 2-d points.

  See also: PTONTOLINE