Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab- interpolation

  1. Sep 15, 2008 #1
    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
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Matlab- interpolation
Loading...