You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
In its simplest usage DIFFXY uses a second-order accurate scheme to approximate the derivative of a vector y with respect to a vector x. It differs from existing functions in the following ways:
- returns dydx having the same size as y (unlike DIFF which reduces the dimension by 1)
- special treatment of end-points for higher accuracy
- specifically built to handle unequally spaced data
DIFFXY also has the following capabilities
- x and y can be N-dimensional arrays
- operate on chosen dimension of N-d arrays
- computes higher-order derivatives via iteration
See the Help section and demo file for examples and further information.
Please suggest any improvements/report any bugs either in the comments or via email.
Cite As
Darren Rowland (2026). diffxy (https://www.mathworks.com/matlabcentral/fileexchange/29312-diffxy), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (65.8 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
