How to get linear fit standard deviation?
Mostrar comentarios más antiguos
After linear fitting I need to get value of standard error. When I use this
A = [x(:),ones(length(x),1)];
[u,std_u] = lscov(A,y(:));
for x=[2550 2450 2352 2256 2162]
for y=[1,93 2,11 2,39 2,44 2,63]
I get right values.
But when I use the same code where
x = [5,13e-19 5,55e-19 5,9e-19 6,370e-19 6,77e-19]
y = [40,40 39,97 39,21 38,67 38,75]
std_u and u value are 0 but they shouldn't be.
Did I use the wrong function? How can I get these values?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!