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
