MATLAB Matlab- interpolation

  • Thread starter birdhen
  • Start date
Hi there,

I am still trying to work out how to get a value of chi-squared from some data (see post below).

I have a model curve with 85 points ( a result of solving an ode, so I do not have the equation of the curve), and 307 data points plotted. In order to work out chi-squared by hand I need to subtract the points on the model from the data points, but can't do this as the arrays are all at different x values. and different lengths. I have tried to interpolate the curve to get some corresponding y values using yi=interpolate(x,y,xi) but the values I get back are much higher than the values they should be...? I am doing the wrong thing?

Any suggestions would be much appreciated.

Many thanks
 

Want to reply to this thread?

"Matlab- interpolation" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top