How to find the uncertainty in coefficients estimated from polyfit

8 views (last 30 days)
I have fitted one degree polynomial(y=mx+c) to my data using polyfit command of matlab . I want to find the uncertainty in the slope and intercept, how to do that ???
I have used [y,delta] = polyval(p,x,S) but here delta gives for uncertainty for every data point not the uncertainty in slope or intercept. Cab some one help in this regard..I got stuck in between my analysis..please help

Answers (1)

Star Strider
Star Strider on 7 Jan 2015
I’m so happy you asked!
See polyparci in the File Exchange!

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!