Curve fitting in Matlab

  • MATLAB
  • Thread starter H_man
  • Start date
  • #1
145
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
 

Answers and Replies

  • #2
Dr Transport
Science Advisor
Gold Member
2,463
596
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.
 

Related Threads on Curve fitting in Matlab

  • Last Post
Replies
5
Views
43K
Replies
5
Views
3K
  • Last Post
Replies
0
Views
7K
Replies
5
Views
1K
Replies
0
Views
3K
Replies
2
Views
7K
  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
22
Views
2K
  • Last Post
Replies
2
Views
3K
Top