| Statistics Toolbox | ![]() |
Syntax
lsline h = lsline
Description
lsline superimposes the least squares line on each line object in the current axes (except LineStyles '-','--','.-'). See the 'LineStyle' property on the Line Properties reference page.
h = lsline returns the handles to the line objects.
Example
y = [2 3.4 5.6 8 11 12.3 13.8 16 18.8 19.9]'; plot(y,'+'); lsline;
| lognstat | mad | ![]() |