How to find the uncertainty in coefficients estimated from polyfit

10 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!

Community Treasure Hunt

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

Start Hunting!