circular diff

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.

引用格式

Petorr (2026). circular diff (https://ww2.mathworks.cn/matlabcentral/fileexchange/44701-circular-diff), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: center_finite_diff.m

类别

Help CenterMATLAB Answers 中查找有关 Geometric Transformation and Image Registration 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
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