[p,S] = polyfit(x,y,n); how to get S manually
1 回表示 (過去 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!