circular diff

版本 1.1.0.0 (1.5 KB) 作者: Petorr
diff with wrap-around differences, same sized output matrix
312.0 次下载
更新时间 2013/12/19

查看许可证

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.

引用格式

Petorr (2024). circular diff (https://www.mathworks.com/matlabcentral/fileexchange/44701-circular-diff), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Geometric Transformation and Image Registration 的更多信息
致谢

启发作品: center_finite_diff.m

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Previous version had faulty automatic dimension assignment when the function is called with a single argument.

It has been updated to match diff() defaults for vector, matrix and N-dim arrays.

1.0.0.0