Trendlines

Draws a trendline or a line on a plot using the mouse

You are now following this Submission

Draws a trendline or a line on a plot using the mouse. First left click leaves a red dot, second left click connect the dots. Returns the XY pairs making the lines in the XY vector.

Cite As

Nagi Hatoum (2026). Trendlines (https://www.mathworks.com/matlabcentral/fileexchange/3069-trendlines), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0