Hello, i need to calculate the polynomial through regression that fits better to my output with 3 inputs. I downloaded polyfitn and i am just trying to understand how it works however i get this error. suppose i have:
ss=polyfitn([aaa,bbb,ccc],ddd,3)
Error using betainc
Z must be real and non-negative.
Error in polyfitn (line 266)
polymodel.p = betainc(polymodel.DoF./(t.^2 + polymodel.DoF),polymodel.DoF/2,1/2);
Error in Untitled2 (line 6)
ss=polyfitn([aaa,bbb],ddd,3)
Any help?
Thank in advance
0 Comments
Sign in to comment.