Curve Fitting in Matlab: Harry's Experience

Click For Summary
SUMMARY

Harry is attempting to fit a polynomial to a dataset of 1301 points in Matlab but is facing challenges. He successfully fits polynomials to smaller datasets but seeks a method that provides a usable function for data manipulation. Recommendations include exploring resources on the Mathworks website and studying Lagrange polynomials and spline curve fits from numerical analysis texts.

PREREQUISITES
  • Familiarity with Matlab for data analysis
  • Understanding of polynomial fitting techniques
  • Knowledge of Lagrange polynomials
  • Basics of spline curve fitting
NEXT STEPS
  • Explore Matlab's curve fitting toolbox for polynomial fitting
  • Research Lagrange polynomial implementation in Matlab
  • Study spline curve fitting techniques and their applications
  • Investigate moving average methods for data presentation
USEFUL FOR

Data analysts, researchers, and engineers looking to perform polynomial fitting and curve analysis in Matlab.

H_man
Messages
143
Reaction score
0
Hi,

I've just been trying unsuccessfully to fit a polynomial to a large set of data in Matlab (1301 points). I want to fit a polynomial to the data so that I have a function with which to try and manipulate the data in different ways.

I have no problem fitting polynomials to much smaller sets of data. I know that other curve fitting options exist, such as the moving average. However, it is my understanding that they do not return a function which can be used (so it seems it is just for presentation).

Has anyone had any experience with this?

Thanks, :confused:

Harry
 
Physics news on Phys.org
Do a search on the Mathworks web site, there is a bunch of code that can be looked at to help you along. Look in your numerical analysis text for Lagrange polynomials or spline curve fits.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K