determine the coefficients of a polynomial

13 vues (au cours des 30 derniers jours)
VENKATESAN SEETHARAMAN
VENKATESAN SEETHARAMAN le 20 Avr 2017
Commenté : Image Analyst le 20 Avr 2017
How to determine the constant coefficients (A, B, C, D, E) of a polynomial of the form:
y = Ax^0.5 + Bx + Cx^2 + Dx^3 + Ex^4
I already have a vector for x and y.

Réponses (1)

John D'Errico
John D'Errico le 20 Avr 2017
Modifié(e) : John D'Errico le 20 Avr 2017
This is not in fact a true polynomial, although some like to extend that family of functions to allow non-integer exponents.
However, my polyfitn can handle the problem easily. Download it from the file exchange.
Or you can use any of a variety of tools in MATLAB, like regress, lsqr, even backslash.
  3 commentaires
John D'Errico
John D'Errico le 20 Avr 2017
I told you that your problem is NOT a polynomial. polyfit CANNOT solve the problem. This is not a possibility, but a simple fact.
I also DID tell you that my own polyfitn DOES solve that problem.
Image Analyst
Image Analyst le 20 Avr 2017
Venkatesan, where did you come up with that model anyway? Is there any physical theory/justification for using a model that's the sum of x^0.5 and a regular polynomial? What physical process are you modeling?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Polynomials dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by