I am trying to figure out how to get an error estimate for

coefficients from say a linear fit.

Lets say for instance I want to fit my data (x,y) to a simple

straight line:

coeff = polyfit(x,y,1);

I want to find out the error in the slope of the fitted line, i.e.,

the error in coeff(1).

Any ideas/suggestions?

Thanks.

majid