How to solve betainc error in Polyfitn extension (by John D'Errico)?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
When using 'just' four point for linear regression in polyfitn, I am often getting this error:
Error using betainc X must be in the interval [0,1].
Error in polyfitn (line 270) polymodel.p = betainc(polymodel.DoF./(t.^2 + polymodel.DoF),polymodel.DoF/2,1/2);
But four points should be enough to fit the plane in 3D space. And I am getting this error also when using more points.
What does this error message means? How to deal with it? Because I have never experienced this error using official polyfit in 2D space.
Thank you!
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Special Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!