How to display answers using polyfit
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everyone.
I'm trying to use polyfit to analyze some data, I want a linear regression, but the slope of the line is small, approximately 1.33e-7, but when I use polyfit, it only returns the coefficient of slope as 0. How can I get it to display the true number?
댓글 수: 0
답변 (3개)
Star Strider
2012년 10월 27일
편집: Star Strider
2012년 10월 28일
You may have scaling problems such that the slope and intercept may vary by several orders of magnitude. Experiment with:
format longE
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!