Skip to content

refline

plot · scripts/plot/draw/refline.m

REFLINE  Add a reference line to the current axes (MATLAB compat).

  H = REFLINE (M, B) draws the line Y = M*X + B across the current axes
  X-limits.  With no arguments, draws a least-squares fit through the
  first line object's data.