Polynomial fitting in Matlab
Version 1.0.02 (1.37 KB) by
Dr. Manotosh Mandal
Matlab codes for Polynomial fitting. The details of the method and also codes are available in the video lecture given in the description.
For details of the method and also coding watch the lecture: https://youtu.be/Ii8zuYd5Tjk
Enter the x values: [0.2 0.5 0.75 0.9 1.13 1.27 1.49 1.67 1.78 1.92]
Enter the y values: [1.8 2.5 3.2 4.7 5.11 5.3 7.3 7.5 8.7 8.95]
Enter the desire degree of polynomial: 3
The coefficients of the desired polynomial:
-0.507
2.425
1.186
1.439
The values of polynomial at given set of x values:
1.769
2.575
3.479
4.101
5.144
5.818
6.913
7.821
8.374
9.067>>
Cite As
Dr. Manotosh Mandal (2025). Polynomial fitting in Matlab (https://www.mathworks.com/matlabcentral/fileexchange/72732-polynomial-fitting-in-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.