How to get linear fit standard deviation?
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!