Error on the slope when using a least squares fit
4 次查看(过去 30 天)
显示 更早的评论
Hello,
I am fitting a slope to data points using least squares fit (polyfit), but I also need to know the error on the slope returned by this function. Does anyone have a handy way of doing this?
Thanks!
0 个评论
回答(1 个)
Sean de Wolski
2012-3-12
If you have the Statistics Toolbox:
doc regress
And if you have the Statistics Toolbox with R2012a:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!