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

Home » Public Forums » archive » derivative function in IDL similar as DIFF in matlab
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: derivative function in IDL similar as DIFF in matlab [message #86465 is a reply to message #86464] Tue, 12 November 2013 04:07 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mardi 12 novembre 2013 13:01:15 UTC+1, Matthew Argall a écrit :
> On Tuesday, November 12, 2013 5:08:11 AM UTC-5, Jie Zhou wrote:
>
>> Is there a derivative function in IDL similar as DIFF in matlab? I think the DERIV is different from DIFF.
>
>
>
> TS_DIFF(data, 1) would be equivalent.

TS_DIFF(data, 1) is simply doing a shift by one (i.e. data - shift(data, 1)), but by using a for loop!
alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: writing fixed-length string arrays to netcdf-4
Next Topic: negative array index in IDL8

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

Current Time: Wed Oct 08 17:27:53 PDT 2025

Total time taken to generate the page: 0.00396 seconds