polyVal2D and polyFit2D
Version 1.1.0.0 (11.5 KB) by
Mark Mikofski
Evaluate 2D polynomials using Horner's method. Fit 2D polynomials to data using backslash operator.
Often it's necessary to fit or evaluate a function with 2 dimensions. Use polyFit2D.m to fit a 2D polynomila to data and polyVal2D.m to evaluate it. Fun!
These functions are explained in detail here:
http://poquitopicante.blogspot.com/2013/03/horners-method-in-2d.html
They are also hosted in a Gist on Github here:
https://gist.github.com/mikofski/5159267
Cite As
Mark Mikofski (2026). polyVal2D and polyFit2D (https://www.mathworks.com/matlabcentral/fileexchange/41097-polyval2d-and-polyfit2d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Find more on Polynomials in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: 2D Weighted Polynomial Fitting and Evaluation, polyfitn
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
