Linear trend line of the given data points

3 次查看(过去 30 天)
I need to get the equation of the linear trend line of the given data points, when intercept is set to zero and I need R-squared value as well.
All these, I can get using MS-Excel. But I need to get all these information being in MATLAB function.
Please help me.

回答(1 个)

Rick Rosson
Rick Rosson 2011-6-28
Please try the function polyfit:
doc polyfit
HTH.

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by