comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Interpolate
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Interpolate [message #91919 is a reply to message #91913] Tue, 15 September 2015 10:32 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Try i=interpol([101,245,366,410,525],[0,1,2,3,4,5],[0.5,1.5,2.5] )

On Tuesday, September 15, 2015 at 9:31:48 AM UTC-4, Dete van Eeden wrote:
> On Tuesday, September 15, 2015 at 1:20:32 PM UTC+2, Haje Korth wrote:
>> On Tuesday, September 15, 2015 at 5:16:04 AM UTC-4, Dete van Eeden wrote:
>>> Hallo
>>>
>>> If I have a set of data:
>>>
>>> x= 0,1,2,3,4,5 and y = 101,245,366,410,525
>>>
>>> how do I use the interpolate function to interpolate the y values for x= 0.5,1.5,2.5 etc?
>>>
>>> Thanks!
>>
>> use interpol instead of interpolate for this. ?interpol gives you the syntax.
>
> Thank you, is there some way that you can just specify the amount of points for example if i want to interpolate 42 points to 256 points?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: medical image reconstruction
Next Topic: NetCDF: Converting time variable using start time from "units"

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:29:33 PDT 2025

Total time taken to generate the page: 0.00266 seconds