[p,S] = polyfit(x,y,n); how to get S manually
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to get the value of S same as the output from polyfit so that I can calculate the value of confidence interval using the polyconf function
My problem is I am not using the polyfit function, instead I use my own regression function (Total Least Square) instead of OLS. Can somebody show me how to get the S manually?
댓글 수: 0
채택된 답변
Jonathan Kwang
2017년 1월 24일
You can view the code for the polyfit function by typing the following in the MATLAB command window: >> edit polyfit
Then by viewing how "S" is created you can try to copy or adapt this code to fit your use.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!