|
|
| File Information |
| Description |
This program estimates the N-order (1rst derivative by default) derivative of a vector data Y (or the columns of a matrix) by interpolating, using INTERP1, two nearby points at each argument point X and then calculating their slope. It ignores NaNs elements.
>> dYdX = nanderivative(Y,X);
The N-order, the proximity of the interpolating points and the interpolation method (default 'spline') are optional input arguments.
Any comment will be very appreciated. (check the screenshot for an example) |
| Acknowledgements |
This submission has inspired the following:
der.m v1.0 (Nov, 2009)
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 08 Jun 2009 |
Rewritten code. Mayor changes with inputs and link axes. Fixed bugs with floating point error, monotonically increasing/decreasing X and if N is not 1 do not outputs all other derivatives anymore. |
| 29 Jul 2009 |
v2.1 Fixed small bug with INTERP1. |
|
Contact us at files@mathworks.com