|
On Nov 9, 8:16 am, nordmoon <ariana...@gmail.com> wrote:
> Don't you need a function for that? What if you do not have a function, you only have x and y points in which y(x)??
----------------------------------------------------------------------------------------------------
You have your data, which are samples from your underlying function.
You pass this in to interp1 and tell it what function you want to use
to estimate the "in between" values, such as spline, linear, etc.
These functions may not be the same as your "true" underlying
function, but then it you knew what that function was, you wouldn't be
needing any other function such as interp1 to estimate it for you --
you'd just use your known function. You do need to supply the "in
between" x values where you want to get your estimated y values to
interp1(). In other words, you have everything you need. Just start
using it.
P.S. You've posted here before and should know the guidelines about
picking descriptive subject lines. "Help" just doesn't quite cut it.
|