Thread Subject: Help

Subject: Help

From: nordmoon

Date: 9 Nov, 2009 10:04:34

Message: 1 of 4

I have a set of points (x,y), that form a Lorentzian - alike curve, how can I get the points between these points?

Subject: Help

From: John D'Errico

Date: 9 Nov, 2009 10:27:01

Message: 2 of 4

nordmoon <arianadax@gmail.com> wrote in message <134539439.38560.1257761104412.JavaMail.root@gallium.mathforum.org>...
> I have a set of points (x,y), that form a Lorentzian - alike curve, how can I get the points between these points?

By using interpolation.

help interp1

John

Subject: Help

From: nordmoon

Date: 9 Nov, 2009 13:16:39

Message: 3 of 4

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)??

Subject: Help

From: ImageAnalyst

Date: 9 Nov, 2009 14:53:52

Message: 4 of 4

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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com