5.0

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 7.13 KB File ID: #4675
image thumbnail

parabolderiv

by Robert Klein-Douwel

 

24 Mar 2004 (Updated 26 Mar 2004)

Differentiates a vector of (sampled) data using the derivative of local parabolic fits to the data.

| Watch this File

File Information
Description

This program differentiates an empirical function (an array of evenly spaced values), for instance periodically sampled data from an experiment.

Method used: basically, a parabola is fit from k points to the left to k points to the right of the point where the derivative is required, this
is then analytically differentiated. These calculations are not actually performed, but the method as given by Lanczos in Ref. [1] is used: only 1 fit parameter of the parabola is needed, which is calculated directly from the data; at the edges a parabola is fit through the first (last) 2k points, from which the derivative is calculated directly. Additional information (on accuracy, &c.) in Ref. [2]. Noise is handled well. An
example from Ref. [1] is included.

The datapoints need to be equidistant. If the graphics_flag is set, the result of this method is compared to applying the standard MATLAB diff() function on the raw data as well as on adjacent averaged filtered data (zero phase delay). The example commands given illustrate this.

References:

[1] Applied analysis / by Cornelius Lanczos (3rd print., London:
Pitman, 1964 )

[2] Digital filters / by Richard W. Hamming (3rd ed., Englewoood Cliffs:
Prentice-Hall, 1989 )

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
28 Mar 2004 Raúl Alliaume  
04 Aug 2004 Jianwen Luo

In the field of digital signal processing, the numerical differentiation using a parabolic fitting or more general polynomial fitting is known as the Savitzky-Golay differentiation filter. See the Matlab function of sgolay or the function at http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4038&objectType=file
or that at http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5556&objectType=file

 

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
approximation Robert Klein-Douwel 22 Oct 2008 07:17:02
interpolation Robert Klein-Douwel 22 Oct 2008 07:17:02
derivative Robert Klein-Douwel 22 Oct 2008 07:17:02
parabolic fit Robert Klein-Douwel 22 Oct 2008 07:17:02
differentiation of array Robert Klein-Douwel 22 Oct 2008 07:17:02
lanczos Robert Klein-Douwel 22 Oct 2008 07:17:02

Contact us at files@mathworks.com