Hi there,(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab- interpolation

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**