Built-in function diff - methodology
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
What methodology is used in "diff"? Does it take forward or central differences, and what is the step? How can I check the source code?
Thanks in advance!
댓글 수: 0
채택된 답변
추가 답변 (2개)
Jan
2012년 4월 3일
You cannot check the code of DIFF, because it is a built-in function. As Jonathan has said already, reading the doc will reveal the internal method. It is the difference of subsequent elements.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!