How to get linear fit standard deviation?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Fit Postprocessing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!