MATLAB Curve Fitting in Matlab: Harry's Experience

AI Thread Summary
Harry is struggling to fit a polynomial to a large dataset of 1301 points in Matlab, seeking a function for further data manipulation. He has successfully fitted polynomials to smaller datasets but finds other methods, like moving averages, inadequate as they do not provide a usable function. Suggestions include searching the Mathworks website for relevant code and exploring numerical analysis texts for Lagrange polynomials or spline curve fits. The discussion highlights the challenges of curve fitting in Matlab and the need for effective solutions. Overall, users are encouraged to leverage available resources for assistance in polynomial fitting.
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
2
Views
1K
Replies
6
Views
5K
Replies
1
Views
2K
Replies
12
Views
4K
Replies
2
Views
3K
Replies
1
Views
3K
Replies
1
Views
1K
Replies
5
Views
3K
Back
Top