polyfit
Polynomial curve fitting.
📝 Syntax
p = polyfit(x, y, n)
📥 Input argument
x - vector: query points
y - vector: fitted values at query points
n - positive scalar: degree of polynomial fit
📤 Output argument
p - vector: Least-squares fit polynomial coefficients
📄 Description
p = polyfit(x, y, n) returns the coefficients for a polynomialp(x) of degree n that is a best fit for the data iny.
💡 Example
🔗 See also
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?