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.
Nagi Hatoum (2021). Trendlines (https://www.mathworks.com/matlabcentral/fileexchange/3069-trendlines), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!