find the coefficient of polynomial

6 Ansichten (letzte 30 Tage)
Dung Tran Hoang
Dung Tran Hoang am 22 Apr. 2020
Beantwortet: Image Analyst am 22 Apr. 2020
i have a table below that list value of function f(x) at various points
x | 1.0 | 1.3 | 1.6 | 1.9 | 2.2
f(x) | 0.7651977 | 0.6200860 | 0.4554022 | 0.2818186 | 0.1103623
Anyone know how to find the coefficient of polynomial of f(x) = A + + C(x^2) + D(x^3)
  2 Kommentare
dpb
dpb am 22 Apr. 2020
Type
lookfor polyf
at command line...
Steven Lord
Steven Lord am 22 Apr. 2020
Search the documentation for the word "polynomial".
docsearch polynomial

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 22 Apr. 2020
Use polyfit():
coefficients = polyfit(x, fx, 3);
D = coefficients(1);
C = coefficients(2);
B = coefficients(3);
A = coefficients(4);

Weitere Antworten (0)

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by