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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com