circular diff
Version 1.1.0.0 (1.49 KB) by
Petorr
diff with wrap-around differences, same sized output matrix
difc is a wrapper for matlab's diff() and takes the same arguments.
The returned matrix size is the same as the input matrix size, like matlab's gradient().
Higher N works using recursion.
Zero N returns the input matrix.
Cite As
Petorr (2024). circular diff (https://www.mathworks.com/matlabcentral/fileexchange/44701-circular-diff), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
Find more on Geometric Transformation and Image Registration in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: center_finite_diff.m
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.