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 #86462 is a reply to message #86461] Tue, 12 November 2013 02:27 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 11:08:11 UTC+1, Jie Zhou a écrit :
> Is there a derivative function in IDL similar as DIFF in matlab? I think the DERIV is different from DIFF.

The DERIV function in IDL uses a second order formula for the discrete differenciation (known as 3-point Lagrange interpolation). Afaik, Matlab DIFF computes a simple difference given, in IDL, by x - shift(x,1), where x is your data series.
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: Fri Oct 10 23:49:55 PDT 2025

Total time taken to generate the page: 1.12099 seconds