MATLAB: Trend line calculation and display

equationinterpolationmathematics

Hi, how can I obtain and display a trend line from some points? I need the equation of the trend line. Thanks

Best Answer

First, plot the data like usual.
Then go to Tools -> Basic Fitting
Choose one of the fittings you like, then check Show Equation
Remember to click the Right Arrow key at the bottom right to view the values of the coefficients for the fit.
Related Question