How to fit polyfit coefficients to a linear model
이전 댓글 표시
Hi, I've used polyfit to fit a polynomial to a set of data.
I'm trying to create a linear regression model
I have used fitlm() to create models that are straight lines, and this works very well, but I don't know how to fit a polynomial style regression to data.
Can anyone guide me?
Is there a way to force MATLAB to create a linear model using fitlm() with the polynomial I found using polyfit?
The main is I want the estimates, SE's, t-stats and Rsquared etc from fitlm()
I've attached an image to show what I've done.
Thanks
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!