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:
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)
Thank in advance